<?php

if(!defined('OT_ROOT')) {
	exit('Access Denied');
}



class UcMain{
	// 会员中心 首页
	public static function index($userID){
		global $DB,$userSysArr;

		$urow = $DB->GetRow('select UE_time,UE_loginTime,UE_loginNum,UE_onlineMinute,UE_loginIP,UE_question,UE_authStr,UE_cardState,UE_groupID,UE_isGroupTime,UE_groupTime,UE_username,UE_mail,UE_realname,UE_phone,UE_weixin,UE_qq,UE_note,UE_money,UE_payMoney,UE_score1,UE_score2,UE_score3,UE_state,UE_face from '. OT_dbPref .'users where UE_ID='. $userID);
		$UE_time			= $urow['UE_time'];
		$UE_loginTime		= $urow['UE_loginTime'];
		$UE_loginNum		= $urow['UE_loginNum'];
		$UE_onlineMinute	= $urow['UE_onlineMinute'];
		$UE_loginIP			= $urow['UE_loginIP'];
		$UE_question		= $urow['UE_question'];
		$UE_authStr			= $urow['UE_authStr'] .'';
		$UE_cardState		= $urow['UE_cardState'];
		$UE_groupID			= $urow['UE_groupID'];
		$UE_isGroupTime		= $urow['UE_isGroupTime'];
		$UE_groupTime		= $urow['UE_groupTime'];
		$UE_username		= $urow['UE_username'];
		$UE_mail			= $urow['UE_mail'];
		$UE_realname		= $urow['UE_realname'];
		$UE_phone			= $urow['UE_phone'];
		$UE_weixin			= $urow['UE_weixin'];
		$UE_qq				= $urow['UE_qq'];
		$UE_note			= $urow['UE_note'];
		$UE_money			= $urow['UE_money'];
		$UE_payMoney		= $urow['UE_payMoney'];
		$UE_score1			= $urow['UE_score1'];
		$UE_score2			= $urow['UE_score2'];
		$UE_score3			= $urow['UE_score3'];
		$UE_state			= $urow['UE_state'];
		$UE_face			= $urow['UE_face'];
			if ($UE_state == 1){
				$stateCN = '<span class="label label-success m-l-10">已审核</span>';
			}else{
				$stateCN = '<span class="label label-danger m-l-10">未审核</span>';
				if (AppUserState1::Jud()){
					$stateCN .= '<a href="?m=userAndGroup"><span class="label label-warning m-l-10">[立即转正]</span></a>';
				}
			}

		$retStr = '';
		if (strlen(trim(''. Str::RegExp($userSysArr['US_announ'],'html'))) >= 3){
			$retStr .= '<div class="announ hui-alert hui-alert-danger">'. $userSysArr['US_announ'] .'</div>';
		}
		$newMessage = '';
	//	if ($UE_mail == ''){
	//		$newMessage .= '<br />你邮箱还未填写（1.增加找回密码方式；2.接收来至网站的最新资讯；）';
	//	}
		if ($UE_question = ''){
			$newMessage .= '你密保还未填写（1.增加找回密码方式）';
		}
		if ($newMessage != ''){
			$retStr .= '<div class="hui-alert hui-alert-error"><b>提示：</b>'. $newMessage .'</div>';
		}

		$groupTimeStr = '';
		if ($urow['UE_isGroupTime']==1 && strtotime($urow['UE_groupTime'])){
			$groupTimeStr = '&ensp;<span style="font-size:12px;color:#d41b35;" title="到期时间：'. $urow['UE_groupTime'] .'">['. TimeDate::DiffDayCN($urow['UE_groupTime'],'') .']</span>';
		}

		$shimingStr = '';
		if ($UE_cardState == 1){
			// $shimingStr = '&ensp;<span style="font-size:12px;color:#9adbff;">[已实名认证]</span>';
			$shimingStr = '<span class="label label-info m-l-10">已实名认证</span>';
		}

		$authMailStr = '';
		if ($userSysArr['US_isAuthMail'] == 1 && AppMail::Jud()){
			if (strpos($UE_authStr,'|邮箱|') === false){
				// $authMailStr = '&ensp;<a href="?m=revInfo&revType=mail" style="font-size:12px;color:#d41b35;" title="点击进入验证">[未验证]</a>';
				$authMailStr = '&ensp;<a href="?m=revInfo&revType=mail" style="font-size:12px;color:#d41b35;" title="点击进入验证"><img src="images/yanzheng0.png" /></a>';
			}else{
				// $authMailStr = '&ensp;<span style="font-size:12px;color:#9adbff;">[已验证]</span>';
				$authMailStr = '&ensp;<img src="images/yanzheng1.png" />';
			}
		}

		$authPhoneStr = '';
		if ($userSysArr['US_isAuthPhone'] == 1 && AppPhone::Jud()){
			if (strpos($UE_authStr,'|手机|') === false){
				// $authPhoneStr = '&ensp;<a href="?m=revInfo&revType=phone" style="font-size:12px;color:#d41b35;" title="点击进入验证">[未验证]</a>';
				$authPhoneStr = '&ensp;<a href="?m=revInfo&revType=phone" style="font-size:12px;color:#d41b35;" title="点击进入验证"><img src="images/yanzheng0.png" /></a>';
			}else{
				// $authPhoneStr = '&ensp;<span style="font-size:12px;color:#9adbff;">[已验证]</span>';
				$authPhoneStr = '&ensp;<img src="images/yanzheng1.png" />';
			}
		}

		$score1Name = $score2Name = $score3Name = '';
		$score1Val = $score2Val = $score3Val = '';
		$levelWhereStr = '';
//		if ($userSysArr['US_isScore1'] == 1){
			$levelWhereStr .= ' and UL_score1<='. $UE_score1;
			$score1Name = $userSysArr['US_score1Name'];
			$score1Val = $UE_score1;
//		}
		if ($userSysArr['US_isScore2'] == 1){
			$levelWhereStr .= ' and UL_score2<='. $UE_score2;
			$score2Name = $userSysArr['US_score2Name'];
			$score2Val = $UE_score2;
		}
		if ($userSysArr['US_isScore3'] == 1){
			$levelWhereStr .= ' and UL_score3<='. $UE_score3;
			$score3Name = $userSysArr['US_score3Name'];
			$score3Val = $UE_score3;
		}

		$menuBtnWidth = '';
		switch ($userSysArr['US_menuBtnWapNum']){
			case 1:		$menuBtnWidth = '100%';		break;
			case 2:		$menuBtnWidth = '50%';		break;
			case 3:		$menuBtnWidth = '33%';		break;
			case 4:		$menuBtnWidth = '25%';		break;
		}
		$btnList = '';
		if (strlen($menuBtnWidth) > 0){
			$btnList .= '
			<style>
			.menuBtn	{ width:calc('. $menuBtnWidth .' - 5px); }
			</style>
			';
		}
		if (AppUserGroupWork::Jud()){
			$btnList .= '<a class="menuBtn btn btn-info m-r-5 m-b-5" href="plugin_deal.php?m=userGroupWork&mode=alertClose" target="_blank">领工资</a>';
		}
		if (AppQiandao::Jud()){
			$btnList .= '<a class="menuBtn btn btn-info m-r-5 m-b-5" '. AppQiandao::UrlModeStr('pc') .'>签到</a>';
		}
		if (AppMoneyPay::Jud()){
			$moneySysArr = Cache::PhpFile('moneySys');

			// 是否显示【充值】按钮
			if ($moneySysArr['MS_isUserPay'] == 1){
				$btnList .= '<a class="menuBtn btn btn-info m-r-5 m-b-5" href="?m=onlinePay">充值</a>';
			}

			if ($moneySysArr['MS_userPayMode'] == 1){
				$rightArea = '<small>余额</small>：<span class="m-l-10">￥<span class="counter">'. $UE_money .'</span></span>&ensp;&ensp;（<small>已消费</small>：￥'. floatval($UE_payMoney) .'）';
			}else{
				$rightArea = '<small>消费</small>：<span class="m-l-10">￥<span class="counter">'. $UE_payMoney .'</span></span>&ensp;&ensp;（<small>余额</small>：￥'. floatval($UE_money) .'）';
			}
		}else{
			$levelRow = $DB->GetRow('select UL_num,UL_themeStyle,UL_theme,UL_img from '. OT_dbPref .'userLevel where (1=1)'. $levelWhereStr .' order by UL_num DESC limit 1');
			$levelStr = '['. $levelRow['UL_num'] .'级] <span style="'. $levelRow['UL_themeStyle'] .'">'. $levelRow['UL_theme'] .'</span>';
			/* $retStr .= '
			<tr>
				<td style="padding:3px;" align="right" valign="top">等级：</td>
				<td style="padding:3px;" align="left">
					<br />
					<img src="'. UsersFileDir . $levelRow['UL_img'] .'" />
				</td>
			</tr>
			'. AppBbs::UcBox2('',$UE_face) .'
			</table>
			'; */

			$rightArea = '<small>等级：</small>'. $levelStr .'';
		}
		if (strpos($userSysArr['US_infoTypeEvent'],'|homeMenu|') !== false){
			$btnList .= '<a class="menuBtn btn btn-info m-r-5 m-b-5" href="?m=infoType">'. $userSysArr['US_infoTypeName'] .'</a>';
		}
		if (strlen($userSysArr['US_menuBtnList']) > 0){
			$menuArr = explode('<arr>', $userSysArr['US_menuBtnList']);
			$menuNum = count(array_filter($menuArr));
			for ($i=1; $i<=$menuNum; $i++){
				$itemArr = explode('|', $menuArr[$i-1] .'|||');	// 至少5个数组元素 0菜单名称|1菜单网址|2打开方式|3背景色|4字色|5访问端
				if (Is::Mobile()){ $currVisit = 'wap'; }else{ $currVisit = 'pc'; }
				if (strlen($itemArr[0]) > 0 && ($itemArr[5] == 'all' || $itemArr[5] == $currVisit)){
					$styleStr = '';
					if (strlen($itemArr[3]) > 0){
						$styleStr .= 'background:'. $itemArr[3] .';border-color:'. $itemArr[3] .';';
					}
					if (strlen($itemArr[4]) > 0){
						$styleStr .= 'color:'. $itemArr[4] .' !important;';
					}
					$btnList .= '<a class="menuBtn btn btn-info m-r-5 m-b-5" style="'. $styleStr .'" href="'. $itemArr[1] .'" target="'. $itemArr[2] .'">'. $itemArr[0] .'</a>';
				}
			}
		}

		$grlStr = '';
		if ($userSysArr['US_isGroupRightList'] == 1){
			$grlStr = 'style="cursor:pointer;" onclick="document.location = \'?m=userGroupRightList\'" title="点击查看会员组权限列表"';
		}
		$retStr .= '
		<div class="row">
			<div class="col-md-8">
				<div class="card">
					<div class="card-body uc-userbox">
						<div class="col-md-4 uc-ucface">
							<a href="javascript:void(0);"><img src="static/images/def-face.png"></a>
						</div>
						<div class="col-md-8 uc-ucbase">
							<h4>用户：'. $UE_username . $shimingStr . $stateCN .'</h4>
							<p>会员组：'. $groupTimeStr .'<span '. $grlStr .'>'. UserGroup::CurrName($UE_groupID) .'</span></p>
							<p>
								<span class="m-r-10">
									<small>注册时间：</small>
									<span title="'. $UE_time .'">'. TimeDate::Get('date',$UE_time) .'</span>
								</span>
								<span class="m-r-10">
									<small>最后登录：</small>
									<span title="'. $UE_loginTime .'">'. TimeDate::Get('date',$UE_loginTime) .'</span>
								</span>
								<span>
									<small>登录次数：</small>
									<span>'. $UE_loginNum .'</span>
								</span>
							</p>
							<p>
								<span class="m-r-10">
									<small>手机：</small>'. $authPhoneStr .'
									<span>'. $UE_phone .'</span>
								</span>
								<span class="m-r-10">
									<small>邮箱：</small>'. $authMailStr .'
									<span>'. $UE_mail .'</span>
								</span>
							</p>
							<p>'. $rightArea .'</p>
							<div>'. $btnList .'</div>
						</div>
						<div class="clr"></div>
					</div>
				</div>
			</div>
			<div class="col-md-4">
				<div class="card">
					<div class="card-header"><a href="'. Url::ListStr('announ', 0, UcBase::PcWapParDir()) .'" target="_blank"><h4><i class="fa fa-bullhorn"></i> 网站公告</h4></a></div>
					<div class="card-body announ">
						<ul>'. self::announBox(strlen($btnList) > 0 ? 6 : 5) .'</ul>
					</div>
				</div>
			</div>
		</div>

		<div class="row">
		';
			// 文章
			$whereTime = TimeDate::Add('d',-30,TimeDate::Get());
			$infoAddNum = $infoAuditNum = 0;
			$infoAddNum = $DB->GetOne('select count(IF_ID) from '. OT_dbPref .'info where IF_userID='. $userID .' and IF_time>='. $DB->ForTime($whereTime));
			if ($infoAddNum > 0){
				$infoAuditNum = $DB->GetOne('select count(IF_ID) from '. OT_dbPref .'info where IF_userID='. $userID .' and IF_isAudit=1 and IF_time>='. $DB->ForTime($whereTime));
			}
			$retStr .= '
			<div class="col-12 col-lg-2">
			<div class="card radius-15">
			<div class="widgets_card-body text-center clearfix">
				<div class="widgets-icons mx-auto rounded-circle">
					<!-- <a href="usersCenter.php?m=newsManage"> --><span class="img-avatar img-avatar-48 bg-lightgray"><!-- <i class="fa fa-newspaper-o"></i> -->文章</span><!-- </a> -->
				</div>
				<p class="mb-0 m-t-10 p-t-10">30天投稿数<span class="text-danger"> '. $infoAddNum .' </span>篇</p>
				<p class="mb-0">审核通过<span class="text-danger"> '. $infoAuditNum .' </span>篇</p>
				<div class="func"><a href="usersCenter.php?m=newsManage" target="_blank">【管理】</a></div>
			</div>
			</div>
			</div>
			';

			// 领工资
			if (AppUserGroupWork::Jud()){
				// if (empty($userSysArr)){ $userSysArr = Cache::PhpFile('userSys'); }
				$urow = $DB->GetRow('select UE_workTime from '. OT_dbPref .'users where UE_ID='. $userID);
				$ug = new UserGroup($userID,'UG_theme,UG_workDay,UG_workMoney,UG_workScore1,UG_workScore2,UG_workScore3');

				$retStr .= '
				<div class="col-12 col-lg-2">
				<div class="card radius-15">
				<div class="widgets_card-body text-center clearfix">
					<div class="widgets-icons mx-auto rounded-circle">
						<!-- <a href="#"> --><span class="img-avatar img-avatar-48 bg-lightgray"><!-- <i class="fa fa-newspaper-o"></i> -->领工资</span><!-- </a> -->
					</div>

					<p class="mb-0 m-t-10 p-t-10" title="上次领取工资时间：'. $urow['UE_workTime'] .'">'. TimeDate::Get('datetime4',$urow['UE_workTime']) .'</p>
					<p class="mb-0">【'. $ug->row['UG_theme'] .'】每 <span class="text-danger">'. $ug->row['UG_workDay'] .'</span> 天可领一次</p>
					<div class="func"><a href="plugin_deal.php?m=userGroupWork&mode=alertClose" target="_blank">【领取】</a></div>
				</div>
				</div>
				</div>
				';
			}

			// 签到
			if (AppQiandao::Jud()){
				$urow = $DB->GetRow('select UE_qiandaoTime,UE_qiandaoNum,UE_qiandaoTotal from '. OT_dbPref .'users where UE_ID='. $userID);

				$retStr .= '
				<div class="col-12 col-lg-2">
				<div class="card radius-15">
				<div class="widgets_card-body text-center clearfix">
					<div class="widgets-icons mx-auto rounded-circle">
						<span class="img-avatar img-avatar-48 bg-lightgray"><!-- <i class="fa fa-newspaper-o"></i> -->签到</span>
					</div>

					<p class="mb-0 m-t-10 p-t-10" title="上次签到时间：'. $urow['UE_qiandaoTime'] .'">'. TimeDate::Get('datetime4',$urow['UE_qiandaoTime']) .'</p>
					<p class="mb-0">累计签 <span class="text-danger">'. $urow['UE_qiandaoTotal'] .'</span> 天，连续签 <span class="text-danger">'. $urow['UE_qiandaoNum'] .'</span> 天</p>
					<div class="func"><a '. AppQiandao::UrlModeStr('pc') .'>【签到】</a></div>
				</div>
				</div>
				</div>
				';
			}

			// 财务
			if (AppMoneyRecord::Jud()){
				// $whereTime = TimeDate::Add('d',-30,TimeDate::Get());
				$addNum = floatval($DB->GetOne('select sum(MR_money) from '. OT_dbPref .'moneyRecord where MR_userID='. $userID .' and MR_money>=0 and MR_time>='. $DB->ForTime($whereTime)));
				$cutNum = floatval($DB->GetOne('select sum(MR_money) from '. OT_dbPref .'moneyRecord where MR_userID='. $userID .' and MR_money<=0 and MR_time>='. $DB->ForTime($whereTime)));

				$retStr .= '
				<div class="col-12 col-lg-2">
				<div class="card radius-15">
				<div class="widgets_card-body text-center clearfix">
					<div class="widgets-icons mx-auto rounded-circle">
						<span class="img-avatar img-avatar-48 bg-lightgray"><!-- <i class="fa fa-newspaper-o"></i> -->财务</span>
					</div>

					<p class="mb-0 m-t-10 p-t-10">30天内充值 <span class="text-danger">'. OT::ToFloat($addNum) .'</span> 元</p>
					<p class="mb-0">30天内支出 <span class="text-danger">'. OT::ToFloat(abs($cutNum)) .'</span> 元</p>
					<div class="func"><a href="usersCenter.php?m=moneyRecord">【查看】</a></div>
				</div>
				</div>
				</div>
				';
			}

			// 公众号
			if (AppWeixin::Jud()){
				$urow = $DB->GetRow('select UE_weixinID,UE_weixinTime from '. OT_dbPref .'users where UE_ID='. $userID);

					if ($urow['UE_weixinID'] > 0){
						$wxName = $DB->GetOne('select WU_nickname from '. OT_dbPref .'weixinUsers where WU_ID='. $urow['UE_weixinID']);
						$bdStr = '绑定昵称：<span style="color:#000;">'. $wxName .'</span>';
					}else{
						$bdStr = '未绑定';
					}

				$retStr .= '
				<div class="col-12 col-lg-2">
				<div class="card radius-15">
				<div class="widgets_card-body text-center clearfix">
					<div class="widgets-icons mx-auto rounded-circle">
						<span class="img-avatar img-avatar-48 bg-lightgray"><!-- <i class="fa fa-newspaper-o"></i> -->公众号</span>
					</div>

					<p class="mb-0 m-t-10 p-t-10" title="绑定公众号时间：'. $urow['UE_weixinTime'] .'">'. TimeDate::Get('datetime4',$urow['UE_weixinTime']) .'</p>
					<p class="mb-0">'. $bdStr .'</p>
					<div class="func"><br /></div>
				</div>
				</div>
				</div>
				';
			}
		$retStr .= '
		</div>
		';

		return $retStr;
	}



	// 会员中心首页-公告
	public static function announBox($num=3,$judGet=true){
		global $DB;

		$judCache = false;
		$cacheName = 'usersCenter_announBox';

		if ($retStr = Cache::CheckWebCache($cacheName)){ $judCache = true; }
		if ($judCache == false){
			$retStr = '';
			$todayDate = TimeDate::Get('date');
			$itemexe = $DB->query('select IF_ID,IF_time,IF_theme,IF_typeStr,IF_themeStyle,IF_contentKey,IF_URL,IF_isEncUrl,IF_infoTypeDir,IF_datetimeDir from '. OT_dbPref .'info where IF_state=1 and IF_isAudit=1 and IF_type1ID=-1'. OT_TimeInfoWhereStr .' order by IF_time DESC limit '. $num);
			while ($row = $itemexe->fetch()){
				if (TimeDate::Diff('d',$row['IF_time'],$todayDate) <= 3){ $newStyle = 'color:#ffc7cf;'; }else{ $newStyle = ''; }
				if (strlen(''. $row['IF_URL']) > 0){
					$hrefStr = Url::NewsUrl($row['IF_URL'], $row['IF_isEncUrl'], $row['IF_ID'], UcBase::PcWapParDir());
				}else{
					$hrefStr = Url::NewsID($row['IF_infoTypeDir'], $row['IF_datetimeDir'], $row['IF_ID'], 0, UcBase::PcWapParDir());
				}
				$retStr .= '
				<li><a href="'. $hrefStr .'" style="'. $row['IF_themeStyle'] .'" target="_blank" title="'. Str::MoreReplace($row['IF_theme'],'input') .'">'. $row['IF_theme'] .'</a></li>
				';
			}

			Cache::WriteWebCache($cacheName,$retStr);
		}

		if ($judGet){
			return $retStr;
		}else{
			echo($retStr);
		}
	}



	// 修改信息
	public static function RevInfo($userID){
		global $DB,$userSysArr;

		$revType		= OT::GetStr('revType');
			if ($revType == ''){ $revType='info'; }

		$addiFieldStr = '';
		if (AppDashang::Jud()){ $addiFieldStr .= ',UE_dashangImg1,UE_dashangImg2,UE_dashangImg3'; }
		if ($userSysArr['US_isShiming'] >= 1){ $addiFieldStr .= ',UE_cardType,UE_cardUser,UE_cardID,UE_cardImg,UE_cardImg2'; }

		$urow = $DB->GetRow('select UE_regType,UE_apiStr,UE_username,UE_question,UE_realname,UE_authStr,UE_cardState,UE_mail,UE_sex,UE_address,UE_postCode,UE_phone,UE_weixin,UE_alipay,UE_qq,UE_ww,UE_web,UE_note,UE_face,UE_pageNum,UE_pageWapNum'. $addiFieldStr .' from '. OT_dbPref .'users where UE_ID='. $userID);
		$UE_regType		= $urow['UE_regType'];
		$UE_apiStr		= $urow['UE_apiStr'];
		$UE_username	= $urow['UE_username'];
		$UE_question	= $urow['UE_question'];
		$UE_realname	= $urow['UE_realname'];
		$UE_authStr		= $urow['UE_authStr'] .'';
		$UE_cardState	= $urow['UE_cardState'];
		$UE_mail		= $urow['UE_mail'];
		$UE_sex			= $urow['UE_sex'];
		$UE_address		= $urow['UE_address'];
		$UE_postCode	= $urow['UE_postCode'] .'';
		$UE_phone		= $urow['UE_phone'];
		$UE_weixin		= $urow['UE_weixin'];
		$UE_alipay		= $urow['UE_alipay'];
		$UE_qq			= $urow['UE_qq'];
		$UE_ww			= $urow['UE_ww'];
		$UE_web			= $urow['UE_web'];
		$UE_note		= $urow['UE_note'];
		$UE_face		= $urow['UE_face'];
		$UE_pageNum		= $urow['UE_pageNum'];
		$UE_pageWapNum	= $urow['UE_pageWapNum'];
		if (AppDashang::Jud()){
			$UE_dashangImg1	= $urow['UE_dashangImg1'];
			$UE_dashangImg2	= $urow['UE_dashangImg2'];
			$UE_dashangImg3	= $urow['UE_dashangImg3'];
		}else{
			$UE_dashangImg1	= '';
			$UE_dashangImg2	= '';
			$UE_dashangImg3	= '';
		}
		if ($userSysArr['US_isShiming'] >= 1){
			$UE_cardType	= $urow['UE_cardType'];
			$UE_cardUser	= $urow['UE_cardUser'];
			$UE_cardID		= $urow['UE_cardID'];
			$UE_cardImg		= $urow['UE_cardImg'];
			$UE_cardImg2	= $urow['UE_cardImg2'];
		}else{
			$UE_cardType	= '';
			$UE_cardUser	= '';
			$UE_cardID		= '';
			$UE_cardImg		= '';
			$UE_cardImg2	= '';
		}

		$retStr = '
		<form id="revForm" name="revForm" method="post" action="usersCenter_deal.php?m=rev" onsubmit="return CheckRevForm();" class="form form-horizontal">
		<script language="javascript" type="text/javascript">document.write(\'<input type="hidden" name="backURL" value="\'+ document.location.href +\'" />\')</script>
		<input type="hidden" id="imgDir" name="imgDir" value="'. UsersFileDir .'" />

		<div class="row brt2_mb30">
			<div class="col-sm-12">
				<div class="form-group">
					<label class="col-sm-2 control-label">修改类型：</label>
					<div class="col-sm-10">
						<label class="uc-radio radio-inline radio-info">
	                    	<input type="radio" id="revType1" name="revType" value="info" onclick="CheckRevInfoType()" '. Is::Checked($revType,'info') .'><span>个人资料</span>
	                  	</label>
						<label class="uc-radio radio-inline radio-warning">
							<input type="radio" id="revType2" name="revType" value="username" onclick="CheckRevInfoType()" '. Is::Checked($revType,'username') .' /><span>用户名</span>
						</label>
	                  	<label class="uc-radio radio-inline radio-danger">
	                  		<input type="radio" id="revType3" name="revType" value="password" onclick="CheckRevInfoType()" '. Is::Checked($revType,'password') .' /><span>密码</span>
	                  	</label>
	                  	<label class="uc-radio radio-inline radio-yellow">
	                  		<input type="radio" id="revType4" name="revType" value="mail" onclick="CheckRevInfoType()" '. Is::Checked($revType,'mail') .' /><span>邮箱</span>
	                  	</label>
	                  	<label class="uc-radio radio-inline radio-dark">
	                  		<input type="radio" id="revType5" name="revType" value="phone" onclick="CheckRevInfoType()" '. Is::Checked($revType,'phone') .' /><span>手机</span>
	                  	</label>
	                  	<label class="uc-radio radio-inline radio-purple">
	                  		<input type="radio" id="revType6" name="revType" value="question" onclick="CheckRevInfoType()" '. Is::Checked($revType,'question') .' /><span>密保</span>
	                  	</label>
	                  	'. ($userSysArr['US_isShiming'] >= 1 ? '
							<label class="uc-radio radio-inline radio-cyan">
								<input type="radio" id="revType8" name="revType" value="shiming" onclick="CheckRevInfoType()" '. Is::Checked($revType,'shiming') .' /><span>实名认证</span>
							</label>
							' : '') .'
	                  	<label class="uc-radio radio-inline radio-warning">
	                  		<input type="radio" id="revType7" name="revType" value="app" onclick="CheckRevInfoType()" '. Is::Checked($revType,'app') .' /><span>其他（插件功能）</span>
	                  	</label>
					</div>
				</div>
			</div>
		</div>

		<div id="infoBox" style="display:none;">
		<input type="hidden" id="userFieldStr" name="userFieldStr" value="'. $userSysArr['US_userFieldStr'] .'" />
		';
		if (strpos($userSysArr['US_userFieldStr'],'|昵称|') !== false){
			if (strlen($UE_realname) > 0 && strpos($userSysArr['US_userFieldStr'],'|昵称不可改|') !== false){
				$retStr .= '
				<div class="row">
					<div class="col-sm-12">
						<div class="form-group">
							<label class="col-sm-2 control-label">姓名/昵称：</label>
							<div class="col-sm-10">
								'. $UE_realname .'
							</div>
						</div>
					</div>
				</div>
				';
			}else{
				if (strpos($userSysArr['US_userFieldStr'],'|昵称必填|') !== false){
					$titleSign = '<span style="color:red;">*</span>&ensp;';
					$mustVal = 1;
				}else{
					$titleSign = '';
					$mustVal = 0;
				}
				$retStr .= '
				<div class="row">
					<div class="col-sm-12">
						<div class="form-group">
							<label class="col-sm-2 control-label">'. $titleSign .'姓名/昵称：</label>
							<div class="col-sm-10">
								<input type="hidden" id="realname_is" name="realname_is" value="1" />
								<input type="hidden" id="realname_must" name="realname_must" value="'. $mustVal .'" />
								<input id="realname" name="realname" class="form-control" type="text" value="'. $UE_realname .'">
							</div>
						</div>
					</div>
				</div>
				';
			}
		}
		if (strpos($userSysArr['US_userFieldStr'],'|性别|') !== false){
			if (strlen($UE_sex) > 0 && strpos($userSysArr['US_userFieldStr'],'|性别不可改|') !== false){
				$retStr .= '
				<div class="row">
					<div class="col-sm-12">
						<div class="form-group">
							<label class="col-sm-2 control-label">性别：</label>
							<div class="col-sm-10">
								'. $UE_sex .'
							</div>
						</div>
					</div>
				</div>
				';
			}else{
				if (strpos($userSysArr['US_userFieldStr'],'|性别必填|') !== false){
					$titleSign = '<span style="color:red;">*</span>&ensp;';
					$mustVal = 1;
				}else{
					$titleSign = '';
					$mustVal = 0;
				}
				$retStr .= '
				<div class="row">
					<div class="col-sm-12">
						<div class="form-group">
							<label class="col-sm-2 control-label">'. $titleSign .'性别：</label>
							<div class="col-sm-10">
								<input type="hidden" id="sex_is" name="sex_is" value="1" />
								<input type="hidden" id="sex_must" name="sex_must" value="'. $mustVal .'" />
								<label class="uc-radio radio-inline radio-info">
	                    			<input type="radio" id="sex1" name="sex" value="男" '. Is::Checked($UE_sex,'男') .'>
	                    			<span>男</span>
	                    		</label>
								&ensp;&ensp;
	                    		<label class="uc-radio radio-inline radio-info">
	                    			<input type="radio" id="sex0" name="sex" value="女" '. Is::Checked($UE_sex,'女') .'>
	                    			<span>女</span>
	                    		</label>
							</div>
						</div>
					</div>
				</div>
				';
			}
		}
		if (strpos($userSysArr['US_userFieldStr'],'|收货地址|') !== false){
			if (strlen($UE_address) > 0 && strpos($userSysArr['US_userFieldStr'],'|收货地址不可改|') !== false){
				$retStr .= '
				<div class="row">
					<div class="col-sm-12">
						<div class="form-group">
							<label class="col-sm-2 control-label">收货地址：</label>
							<div class="col-sm-10">
								'. $UE_address .'
							</div>
						</div>
					</div>
				</div>
				';
			}else{
				if (strpos($userSysArr['US_userFieldStr'],'|收货地址必填|') !== false){
					$titleSign = '<span style="color:red;">*</span>&ensp;';
					$mustVal = 1;
				}else{
					$titleSign = '';
					$mustVal = 0;
				}
				$retStr .= '
				<div class="row">
					<div class="col-sm-12">
						<div class="form-group">
							<label class="col-sm-2 control-label">收货地址：</label>
							<div class="col-sm-10">
								<input type="hidden" id="address_is" name="address_is" value="1" />
								<input type="hidden" id="address_must" name="address_must" value="'. $mustVal .'" />
								<input id="address" name="address" class="form-control" type="text" value="'. $UE_address .'">
							</div>
						</div>
					</div>
				</div>
				';
			}
		}
		if (strpos($userSysArr['US_userFieldStr'],'|邮编|') !== false){
			if (strlen($UE_postCode) > 0 && strpos($userSysArr['US_userFieldStr'],'|邮编不可改|') !== false){
				$retStr .= '
				<div class="row">
					<div class="col-sm-12">
						<div class="form-group">
							<label class="col-sm-2 control-label">邮编：</label>
							<div class="col-sm-10">
								'. $UE_postCode .'
							</div>
						</div>
					</div>
				</div>
				';
			}else{
				if (strpos($userSysArr['US_userFieldStr'],'|邮编必填|') !== false){
					$titleSign = '<span style="color:red;">*</span>&ensp;';
					$mustVal = 1;
				}else{
					$titleSign = '';
					$mustVal = 0;
				}
				$retStr .= '
				<div class="row">
					<div class="col-sm-12">
						<div class="form-group">
							<label class="col-sm-2 control-label">'. $titleSign .'邮编：</label>
							<div class="col-sm-10">
								<input type="hidden" id="postCode_is" name="postCode_is" value="1" />
								<input type="hidden" id="postCode_must" name="postCode_must" value="'. $mustVal .'" />
								<input id="postCode" name="postCode" class="form-control" type="text" value="'. $UE_postCode .'">
							</div>
						</div>
					</div>
				</div>
				';
			}
		}
		if (strpos($userSysArr['US_userFieldStr'],'|QQ|') !== false){
			if (strlen($UE_qq) > 0 && strpos($userSysArr['US_userFieldStr'],'|QQ不可改|') !== false){
				$retStr .= '
				<div class="row">
					<div class="col-sm-12">
						<div class="form-group">
							<label class="col-sm-2 control-label">QQ：</label>
							<div class="col-sm-10">
								'. $UE_qq .'
							</div>
						</div>
					</div>
				</div>
				';
			}else{
				if (strpos($userSysArr['US_userFieldStr'],'|QQ必填|') !== false){
					$titleSign = '<span style="color:red;">*</span>&ensp;';
					$mustVal = 1;
				}else{
					$titleSign = '';
					$mustVal = 0;
				}
				$retStr .= '
				<div class="row">
					<div class="col-sm-12">
						<div class="form-group">
							<label class="col-sm-2 control-label">'. $titleSign .'QQ：</label>
							<div class="col-sm-10">
								<input type="hidden" id="qq_is" name="qq_is" value="1" />
								<input type="hidden" id="qq_must" name="qq_must" value="'. $mustVal .'" />
								<input id="qq" name="qq" class="form-control" type="text" value="'. $UE_qq .'">
								<span class="font2_2">&ensp;如多个QQ用逗号“,”隔开</span>
							</div>
						</div>
					</div>
				</div>
				';
			}
		}
		if (strpos($userSysArr['US_userFieldStr'],'|微信|') !== false){
			if (strlen($UE_weixin) > 0 && strpos($userSysArr['US_userFieldStr'],'|微信不可改|') !== false){
				$retStr .= '
				<div class="row">
					<div class="col-sm-12">
						<div class="form-group">
							<label class="col-sm-2 control-label">微信：</label>
							<div class="col-sm-10">
								'. $UE_weixin .'
							</div>
						</div>
					</div>
				</div>
				';
			}else{
				if (strpos($userSysArr['US_userFieldStr'],'|微信必填|') !== false){
					$titleSign = '<span style="color:red;">*</span>&ensp;';
					$mustVal = 1;
				}else{
					$titleSign = '';
					$mustVal = 0;
				}
				$retStr .= '
				<div class="row">
					<div class="col-sm-12">
						<div class="form-group">
							<label class="col-sm-2 control-label">'. $titleSign .'微信：</label>
							<div class="col-sm-10">
								<input type="hidden" id="weixin_is" name="weixin_is" value="1" />
								<input type="hidden" id="weixin_must" name="weixin_must" value="'. $mustVal .'" />
								<input id="weixin" name="weixin" class="form-control" type="text" value="'. $UE_weixin .'">
							</div>
						</div>
					</div>
				</div>
				';
			}
		}
		if (strpos($userSysArr['US_userFieldStr'],'|支付宝|') !== false){
			if (strlen(''. $UE_alipay) > 0 && strpos($userSysArr['US_userFieldStr'],'|支付宝不可改|') !== false){
				$retStr .= '
				<div class="row">
					<div class="col-sm-12">
						<div class="form-group">
							<label class="col-sm-2 control-label">支付宝：</label>
							<div class="col-sm-10">
								'. $UE_alipay .'
							</div>
						</div>
					</div>
				</div>
				';
			}else{
				if (strpos($userSysArr['US_userFieldStr'],'|支付宝必填|') !== false){
					$titleSign = '<span style="color:red;">*</span>&ensp;';
					$mustVal = 1;
				}else{
					$titleSign = '';
					$mustVal = 0;
				}
				$retStr .= '
				<div class="row">
					<div class="col-sm-12">
						<div class="form-group">
							<label class="col-sm-2 control-label">'. $titleSign .'支付宝：</label>
							<div class="col-sm-10">
								<input type="hidden" id="alipay_is" name="alipay_is" value="1" />
								<input type="hidden" id="alipay_must" name="alipay_must" value="'. $mustVal .'" />
								<input id="alipay" name="alipay" class="form-control" type="text" value="'. $UE_alipay .'">
							</div>
						</div>
					</div>
				</div>
				';
			}
		}
		if (strpos($userSysArr['US_userFieldStr'],'|旺旺|') !== false){
			if (strlen($UE_ww) > 0 && strpos($userSysArr['US_userFieldStr'],'|旺旺不可改|') !== false){
				$retStr .= '
				<div class="row">
					<div class="col-sm-12">
						<div class="form-group">
							<label class="col-sm-2 control-label">旺旺：</label>
							<div class="col-sm-10">
								'. $UE_ww .'
							</div>
						</div>
					</div>
				</div>
				';
			}else{
				if (strpos($userSysArr['US_userFieldStr'],'|旺旺必填|') !== false){
					$titleSign = '<span style="color:red;">*</span>&ensp;';
					$mustVal = 1;
				}else{
					$titleSign = '';
					$mustVal = 0;
				}
				$retStr .= '
				<div class="row">
					<div class="col-sm-12">
						<div class="form-group">
							<label class="col-sm-2 control-label">'. $titleSign .'旺旺：</label>
							<div class="col-sm-10">
								<input type="hidden" id="ww_is" name="ww_is" value="1" />
								<input type="hidden" id="ww_must" name="ww_must" value="'. $mustVal .'" />
								<input id="ww" name="ww" class="form-control" type="text" value="'. $UE_ww .'">
							</div>
						</div>
					</div>
				</div>
				';
			}
		}
		if (strpos($userSysArr['US_userFieldStr'],'|个人主页|') !== false){
			if (strlen($UE_web) > 0 && strpos($userSysArr['US_userFieldStr'],'|个人主页不可改|') !== false){
				$retStr .= '
				<div class="row">
					<div class="col-sm-12">
						<div class="form-group">
							<label class="col-sm-2 control-label">个人主页：</label>
							<div class="col-sm-10">
								'. $UE_web .'
							</div>
						</div>
					</div>
				</div>
				';
			}else{
				if (strpos($userSysArr['US_userFieldStr'],'|个人主页必填|') !== false){
					$titleSign = '<span style="color:red;">*</span>&ensp;';
					$mustVal = 1;
				}else{
					$titleSign = '';
					$mustVal = 0;
				}
				$retStr .= '
				<div class="row">
					<div class="col-sm-12">
						<div class="form-group">
							<label class="col-sm-2 control-label">'. $titleSign .'个人主页：</label>
							<div class="col-sm-10">
								<input type="hidden" id="web_is" name="web_is" value="1" />
								<input type="hidden" id="web_must" name="web_must" value="'. $mustVal .'" />
								<input id="web" name="web" class="form-control" type="text" value="'. $UE_web .'">
							</div>
						</div>
					</div>
				</div>
				';
			}
		}
		if (strpos($userSysArr['US_userFieldStr'],'|备注|') !== false){
			if (strlen($UE_note) > 0 && strpos($userSysArr['US_userFieldStr'],'|备注不可改|') !== false){
				$retStr .= '
				<div class="row">
					<div class="col-sm-12">
						<div class="form-group">
							<label class="col-sm-2 control-label">备注：</label>
							<div class="col-sm-10">
								'. $UE_note .'
							</div>
						</div>
					</div>
				</div>
				';
			}else{
				if (strpos($userSysArr['US_userFieldStr'],'|备注必填|') !== false){
					$titleSign = '<span style="color:red;">*</span>&ensp;';
					$mustVal = 1;
				}else{
					$titleSign = '';
					$mustVal = 0;
				}
				$retStr .= '
				<div class="row">
					<div class="col-sm-12">
						<div class="form-group">
							<label class="col-sm-2 control-label">'. $titleSign .'备注：</label>
							<div class="col-sm-10">
								<input type="hidden" id="note_is" name="note_is" value="1" />
								<input type="hidden" id="note_must" name="note_must" value="'. $mustVal .'" />
								<textarea id="note" name="note" cols="40" rows="4" class="form-control">'. $UE_note .'</textarea>
								<div style="padding-top:6px;color:red;">提醒：遇到不可修改信息，又需要修改的，请联系管理员。</div>
							</div>
						</div>
					</div>
				</div>
				';
			}
		}
		$retStr .= '
		<div class="row">
			<div class="col-sm-12">
				<div class="form-group">
					<label class="col-sm-2 control-label">每页数量：</label>
					<div class="col-sm-10">
						<input id="pageNum" name="pageNum" class="form-control" type="text" value="'. $UE_pageNum .'">
					</div>
				</div>
			</div>
		</div>
		<!-- 
			<div class="row">
				<div class="col-sm-12">
					<div class="form-group">
						<label class="col-sm-2 control-label">手机版每页数量：</label>
						<div class="col-sm-10">
							<input id="pageWapNum" name="pageWapNum" class="form-control" type="text" value="'. $UE_pageWapNum .'">
						</div>
					</div>
				</div>
			</div>
		-->
		</div>

		<div id="usernameBox" style="display:none;">
		<div class="row">
			<div class="col-sm-12">
				<div class="form-group">
					<label class="col-sm-2 control-label">原用户名：</label>
					<div class="col-sm-10">
						'. $UE_username .'
					</div>
				</div>
			</div>
		</div>
		';
		if (($UE_regType=='qq' && substr($UE_username,0,3)=='qq_') || ($UE_regType=='weibo' && substr($UE_username,0,6)=='weibo_') || ($UE_regType=='weixin' && substr($UE_username,0,7)=='weixin_') || ($UE_regType=='wxmp' && substr($UE_username,0,5)=='wxmp_') || ($UE_regType=='taobao' && substr($UE_username,0,7)=='taobao_') || ($UE_regType=='alipay' && substr($UE_username,0,7)=='alipay_') || strpos($userSysArr['US_userFieldStr'],'|用户名修改|') !== false){
			$retStr .= '
			<div class="row">
				<div class="col-sm-12">
					<div class="form-group">
						<label class="col-sm-2 control-label">新用户名：</label>
						<div class="col-sm-10">
							<input id="newUsername" name="newUsername" class="form-control" type="text" maxlength="32">
							<!--  onblur="CheckUsername(this.value)" -->
							<span id="usernameIsOk"></span>
							长度4~16字节，仅允许 数字、英文、汉字、下划线
							<div id="usernameStr"></div>
							<input type="hidden" id="isRevUsername" name="isRevUsername" value="1" />
						</div>
					</div>
				</div>
			</div>
			<div class="row">
				<div class="col-sm-12">
					<div class="form-group">
						<label class="col-sm-2 control-label">确认用户名：</label>
						<div class="col-sm-10">
							<input id="newUsername2" name="newUsername2" class="form-control" type="text" maxlength="32">
						</div>
					</div>
				</div>
			</div>
			';
		}else{
			if ($UE_regType != 'web'){
				$newUsernameAlert = '您已修改过用户名，不能在修改了。';
			}else{
				$newUsernameAlert = '您是非快捷登录注册的，不允许修改用户名。';
			}
			$retStr .= '
			<div class="row">
				<div class="col-sm-12">
					<div class="form-group">
						<label class="col-sm-2 control-label">新用户名：</label>
						<div class="col-sm-10">
							'. $newUsernameAlert .'<input type="hidden" id="isRevUsername" name="isRevUsername" value="0" />
						</div>
					</div>
				</div>
			</div>
			';
		}
		$retStr .= '
		</div>

		<div id="passwordBox" style="display:none;">
		<div class="row">
			<div class="col-sm-12">
				<div class="form-group">
					<label class="col-sm-2 control-label">原密码：</label>
					<div class="col-sm-10">
						';
						if (strpos($userSysArr['US_userFieldStr'],'|密码直接修改|') !== false){
							$retStr .= '
							直接设置新密码
							<input type="hidden" id="userpwdOld" name="userpwdOld" class="text" maxlength="32" value="no" />
							';
						}elseif (strpos($UE_apiStr,'|web:::') !== false){
							$retStr .= '<input id="userpwdOld" name="userpwdOld" class="form-control" type="password" maxlength="32">';
						}else{
							$retStr .= '
							未设置过，直接设置新密码
							<input type="hidden" id="userpwdOld" name="userpwdOld" class="text" maxlength="32" value="no" />
							';
						}
						$retStr .= '
						
					</div>
				</div>
			</div>
		</div>
		<div class="row">
			<div class="col-sm-12">
				<div class="form-group">
					<label class="col-sm-2 control-label">新密码：</label>
					<div class="col-sm-10">
						<input id="userpwd" name="userpwd" class="form-control" type="password" maxlength="32">
						<span id="userpwdIsOk"></span>
						长度6-32位
						<div id="userpwdStr" class="font2_2"></div>
					</div>
				</div>
			</div>
		</div>
		<div class="row">
			<div class="col-sm-12">
				<div class="form-group">
					<label class="col-sm-2 control-label">确认密码：</label>
					<div class="col-sm-10">
						<input id="userpwd2" name="userpwd2" class="form-control" type="password" maxlength="32" >
						<span id="userpwd2IsOk"></span>
						<div id="userpwd2Str" class="font2_2"></div>
					</div>
				</div>
			</div>
		</div>
		</div>

		<div id="mailBox" style="display:none;">
		';
		$judAppMail = AppMail::Jud();
		if ($userSysArr['US_isLockMail'] == 1 && strpos($UE_authStr,'|邮箱|') !== false && $judAppMail){
			$retStr .= '
			<div class="row">
				<div class="col-sm-12">
					<div class="form-group">
						<label class="col-sm-2 control-label">当前邮箱：</label>
						<div class="col-sm-10">
							'. $UE_mail .'
							<div style="color:red;margin-top:8px;">邮箱验证通过后禁止用户修改，如要修改请联系网站管理员处理。</div>
						</div>
					</div>
				</div>
			</div>
			';
		}else{
			if ($userSysArr['US_isAuthMail'] == 1 && strpos($UE_authStr,'|邮箱|') === false && $judAppMail){
				$retStr .= '
				<div class="row">
					<div class="col-sm-12">
						<div class="form-group">
							<label class="col-sm-2 control-label">当前邮箱：</label>
							<div class="col-sm-10">
								<input type="hidden" id="isAuthMail" name="isAuthMail" value="1" />
								<input id="mail" name="mail" class="form-control" type="text" onchange="CheckMail()" value="'. $UE_mail .'">
								<input type="button" id="sendMail" value="发送邮件验证码" onclick=\'SendMailCode(this.id,"mail","rev","");\' />
								<span id="mailIsOk"></span>
								<div id="mailStr" class="font2_2"></div>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-sm-12">
						<div class="form-group">
							<label class="col-sm-2 control-label">邮件验证码：</label>
							<div class="col-sm-10">
								<input id="mailCode" name="mailCode" class="form-control" type="text">
							</div>
						</div>
					</div>
				</div>
				';
			}else{
				$currBtnStr = $currCodeStr = $newBtnStr = $newCodeStr = '';
				if ($userSysArr['US_isAuthMail'] == 1 && strpos($UE_authStr,'|邮箱|') !== false && $judAppMail){
					$currBtnStr = '<input type="hidden" id="oldMail" name="oldMail" value="'. $UE_mail .'" /><input type="button" id="sendOldMail" value="发送邮件验证码" onclick=\'SendMailCode(this.id,"oldMail","check","");\' />';
					$currCodeStr = '
						<div class="row">
							<div class="col-sm-12">
								<div class="form-group">
									<label class="col-sm-2 control-label">当前邮件验证码：</label>
									<div class="col-sm-10">
										<input id="mailOldCode" name="mailOldCode" class="form-control" type="text">
									</div>
								</div>
							</div>
						</div>
						';
					$newBtnStr = '<input type="button" id="sendMail" value="发送邮件验证码" style="height:29px;" onclick=\'SendMailCode(this.id,"mail","rev","");\' />';
					$newCodeStr = '
						<div class="row">
							<div class="col-sm-12">
								<div class="form-group">
									<label class="col-sm-2 control-label">新邮件验证码：</label>
									<div class="col-sm-10">
										<input id="mailCode" name="mailCode" class="form-control" type="text">
									</div>
								</div>
							</div>
						</div>
						';
				}

				$retStr .= '
				<div class="row">
					<div class="col-sm-12">
						<div class="form-group">
							<label class="col-sm-2 control-label">当前邮箱：</label>
							<div class="col-sm-10">
								'. $UE_mail .'&ensp;'. $currBtnStr .'
							</div>
						</div>
					</div>
				</div>
				'. $currCodeStr .'
				<div class="row">
					<div class="col-sm-12">
						<div class="form-group">
							<label class="col-sm-2 control-label">新邮箱：</label>
							<div class="col-sm-10">
								<input type="hidden" id="isAuthMail" name="isAuthMail" value="0" />
								<input id="mail" name="mail" class="form-control" type="text" onchange="CheckMail()">
								'. $newBtnStr .'
								<span id="mailIsOk"></span>
								<div id="mailStr" class="font2_2"></div>
							</div>
						</div>
					</div>
				</div>
				'. $newCodeStr .'
				';
			}
			$retStr .= '
			<div class="row">
				<div class="col-sm-12">
					<div class="form-group">
						<label class="col-sm-2 control-label">会员登录密码：</label>
						<div class="col-sm-10">
							<input id="mailPwd" name="mailPwd" class="form-control" type="password" maxlength="32" >
							<span class="font2_2">&ensp;以确保修改邮箱的是该会员</span>
						</div>
					</div>
				</div>
			</div>
			';
		}
		$retStr .= '
		</div>

		<div id="phoneBox" style="display:none;">
		';
		$judAppPhone = AppPhone::Jud();
		if ($userSysArr['US_isLockPhone'] == 1 && strpos($UE_authStr,'|手机|') !== false && $judAppPhone){
			$retStr .= '
			<div class="row">
				<div class="col-sm-12">
					<div class="form-group">
						<label class="col-sm-2 control-label">当前手机：</label>
						<div class="col-sm-10">
							'. $UE_phone .'<div style="color:red;margin-top:8px;">手机验证通过后禁止用户修改，如要修改请联系网站管理员处理。</div>
						</div>
					</div>
				</div>
			</div>
			';
		}else{
			if ($userSysArr['US_isAuthPhone'] == 1 && strpos($UE_authStr,'|手机|') === false && $judAppPhone){
				$retStr .= '
				<div class="row">
					<div class="col-sm-12">
						<div class="form-group">
							<label class="col-sm-2 control-label">当前手机：</label>
							<div class="col-sm-10">
								<input type="hidden" id="isAuthPhone" name="isAuthPhone" value="1" />
								<input id="phone" name="phone" class="form-control" type="text" onchange="CheckPhone()" value="'. $UE_phone .'">
								<input type="button" id="sendPhone" value="发送短信验证码" style="height:29px;" onclick=\'SendPhoneCode(this.id,"phone","rev","");\' />
								<span id="phoneIsOk"></span>
								<div id="phoneStr" class="font2_2"></div>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-sm-12">
						<div class="form-group">
							<label class="col-sm-2 control-label">短信验证码：</label>
							<div class="col-sm-10">
								<input id="phoneCode" name="phoneCode" class="form-control" type="text">
							</div>
						</div>
					</div>
				</div>
				';
			}else{
				$currBtnStr = $currCodeStr = $newBtnStr = $newCodeStr = '';
				if ($userSysArr['US_isAuthPhone'] == 1 && strpos($UE_authStr,'|手机|') !== false && $judAppPhone){
					$currBtnStr = '<input type="hidden" id="oldPhone" name="oldPhone" value="'. $UE_phone .'" /><input type="button" id="sendOldPhone" value="发送短信验证码" onclick=\'SendPhoneCode(this.id,"oldPhone","check","");\' />';
					$currCodeStr = '
						<div class="row">
							<div class="col-sm-12">
								<div class="form-group">
									<label class="col-sm-2 control-label">当前短信验证码：</label>
									<div class="col-sm-10">
										<input id="phoneOldCode" name="phoneOldCode" class="form-control" type="text">
									</div>
								</div>
							</div>
						</div>
						';
					$newBtnStr = '<input type="button" id="sendPhone" value="发送短信验证码" style="height:29px;" onclick=\'SendPhoneCode(this.id,"phone","rev","");\' />';
					$newCodeStr = '
						<div class="row">
							<div class="col-sm-12">
								<div class="form-group">
									<label class="col-sm-2 control-label">新短信验证码：</label>
									<div class="col-sm-10">
										<input id="phoneCode" name="phoneCode" class="form-control" type="text">
									</div>
								</div>
							</div>
						</div>
						';
				}

				$retStr .= '
				<div class="row">
					<div class="col-sm-12">
						<div class="form-group">
							<label class="col-sm-2 control-label">当前手机：</label>
							<div class="col-sm-10">
								'. $UE_phone .'&ensp;'. $currBtnStr .'
							</div>
						</div>
					</div>
				</div>
				'. $currCodeStr .'
				<div class="row">
					<div class="col-sm-12">
						<div class="form-group">
							<label class="col-sm-2 control-label">新手机：</label>
							<div class="col-sm-10">
								<input type="hidden" id="isAuthPhone" name="isAuthPhone" value="0" />
								<input id="phone" name="phone" class="form-control" type="text" onchange="CheckPhone()">
								'. $newBtnStr .'
								<span id="phoneIsOk"></span>
								<div id="phoneStr" class="font2_2"></div>
							</div>
						</div>
					</div>
				</div>
				'. $newCodeStr .'
				';
			}
			$retStr .= '
			<div class="row">
				<div class="col-sm-12">
					<div class="form-group">
						<label class="col-sm-2 control-label">会员登录密码：</label>
						<div class="col-sm-10">
							<input id="phonePwd" name="phonePwd" class="form-control" type="text">
							<span class="font2_2">&ensp;以确保修改手机的是该会员</span>
						</div>
					</div>
				</div>
			</div>
			';
		}
		$retStr .= '
		</div>

		<div id="questionBox" style="display:none;">
		';
		if ($UE_question != ''){
			$retStr .= '
			<div class="row">
				<div class="col-sm-12">
					<div class="form-group">
						<label class="col-sm-2 control-label">旧密保问题：</label>
						<div class="col-sm-10">
							'. $UE_question .'
						</div>
					</div>
				</div>
			</div>
			<div class="row">
				<div class="col-sm-12">
					<div class="form-group">
						<label class="col-sm-2 control-label">旧密保答案：</label>
						<div class="col-sm-10">
							<input id="answerOld" name="answerOld" class="form-control" type="text">
						</div>
					</div>
				</div>
			</div>
			';
		}
		$retStr .= '
		<div class="row">
			<div class="col-sm-12">
				<div class="form-group">
					<label class="col-sm-2 control-label">新密保问题：</label>
					<div class="col-sm-10">
						<input id="question" name="question" class="form-control" type="text" onchange="CheckQuestion()">
						<span id="questionIsOk"></span>
						长度2~50字节，仅允许 数字、英文、汉字、下划线
						<div id="questionStr" class="font2_2"></div>
					</div>
				</div>
			</div>
		</div>
		<div class="row">
			<div class="col-sm-12">
				<div class="form-group">
					<label class="col-sm-2 control-label">新密保答案：</label>
					<div class="col-sm-10">
						<input id="answer" name="answer" class="form-control" type="text" onchange="CheckAnswer()">
						<span id="answerIsOk"></span>
						长度2~50字节
						<div id="answerStr" class="font2_2"></div>
					</div>
				</div>
			</div>
		</div>
		</div>

		<div id="shimingBox" style="display:none;">
		'. (strlen($userSysArr['US_shimingAnnoun']) > 5 ? '<div class="fullBox" style="width:93%;">'. $userSysArr['US_shimingAnnoun'] .'</div>' : '') .'
		';
		if (in_array($UE_cardState,array(1,2,11,21))){
			if ($UE_cardState == 11){
				$stateStr = '<span style="color:green;">&ensp;（ <b>微信</b> 扫码实名审核通过）</span>';
			}elseif ($UE_cardState == 21){
				$stateStr = '<span style="color:green;">&ensp;（ <b>支付宝</b> 扫码实名审核通过）</span>';
			}elseif ($UE_cardState == 1){
				$stateStr = '<span style="color:green;">&ensp;（已审核通过，如需修改请联系管理员）</span>';
			}else{
				$stateStr = '<span style="color:blue;">&ensp;（审核中，请等待，如需加急审核请联系管理员）</span>';
			}

			$retStr .= '
			<input type="hidden" id="isShiming" name="isShiming" value="'. $UE_cardState .'" />
			<div class="row">
				<div class="col-sm-12">
					<div class="form-group">
						<label class="col-sm-2 control-label">实名认证类型：</label>
						<div class="col-sm-10">'. $UE_cardType . $stateStr .'</div>
					</div>
				</div>
			</div>
			<div class="row">
				<div class="col-sm-12">
					<div class="form-group">
						<label class="col-sm-2 control-label">实名'. ($UE_cardType == '营业执照' ? '公司名称' : '姓名') .'：</label>
						<div class="col-sm-10">
							'. $UE_cardUser .'
						</div>
					</div>
				</div>
			</div>
			<div class="row">
				<div class="col-sm-12">
					<div class="form-group">
						<label class="col-sm-2 control-label">实名'. ($UE_cardType == '营业执照' ? '公司税号' : '身份证号') .'：</label>
						<div class="col-sm-10">
							'. $UE_cardID .'
						</div>
					</div>
				</div>
			</div>
			';
			if ($UE_cardState == 1 || $UE_cardState == 2){
				$retStr .= '
				<div class="row">
					<div class="col-sm-12">
						<div class="form-group">
							<label class="col-sm-2 control-label">实名'. ($UE_cardType == '营业执照' ? '营业执照' : '身份证') .'：</label>
							<div class="col-sm-10">
								'. (strlen($UE_cardImg)>0 ? '<a href="'. UcBase::BeforeURL() . Info::InfoImgUrl($UE_cardImg,UsersFileDir) .'" target="_blank" title="点击看原图"><img src="'. UcBase::BeforeURL() . Info::InfoImgUrl($UE_cardImg,UsersFileDir) .'" style="max-width:200px;max-height:200px;" /></a>' : '暂无') .'
							</div>
						</div>
					</div>
				</div>
				';
			}
		}else{
			/*
			<tr>
				<td align="right">实名认证选择：</td>
				<td>
					<select id="cardDealType" name="cardDealType" onchange="CheckShimingDeal()">
						'. (strpos($userSysArr['US_shimingTypeStr'],'[upImg]') !== false ? '<option value="upImg">上传电子版</option>' : '') .'
						'. (strpos($userSysArr['US_shimingTypeStr'],'[alipay]') !== false ? '<option value="alipay">支付宝扫码实名</option>' : '') .'
						'. (strpos($userSysArr['US_shimingTypeStr'],'[weixin]') !== false ? '<option value="weixin">微信扫码实名</option>' : '') .'
					</select>&ensp;
				</td>
			</tr>
			*/
			$shimingTypeList = '';
			if (strpos($userSysArr['US_shimingTypeStr'],'[upImg]') !== false){
				if (strlen($shimingTypeList) == 0){ $chked='checked="checked"'; }else{ $chked=''; }
				$shimingTypeList .= '
				<label class="uc-radio radio-inline radio-info">
                	<input type="radio" id="cardDealType_upImg" name="cardDealType" value="upImg" onclick="CheckShimingDeal()" '. $chked .'>
                	<span>上传电子版</span>
              	</label>';
			}
			if (strpos($userSysArr['US_shimingTypeStr'],'[alipay]') !== false){
				if (strlen($shimingTypeList) == 0){ $chked='checked="checked"'; }else{ $chked=''; }
				$shimingTypeList .= '
				<label class="uc-radio radio-inline radio-info">
                	<input type="radio" id="cardDealType_alipay" name="cardDealType" value="alipay" onclick="CheckShimingDeal()" '. $chked .'>
                	<span>支付宝扫码实名</span>
              	</label>';
			}
			if (strpos($userSysArr['US_shimingTypeStr'],'[weixin]') !== false){
				if (strlen($shimingTypeList) == 0){ $chked='checked="checked"'; }else{ $chked=''; }
				$shimingTypeList .= '
				<label class="uc-radio radio-inline radio-info">
                	<input type="radio" id="cardDealType_weixin" name="cardDealType" value="weixin" onclick="CheckShimingDeal()" '. $chked .'>
                	<span>微信扫码实名</span>
              	</label>';
			}

			$cardTypeNum = 0;
			$cardTypeOption = $cardTypeName = '';
			if ( strpos($userSysArr['US_shimingTypeStr'],'[geren]') !== false ){
				$cardTypeNum ++;
				$cardTypeName = '身份证';
				$cardTypeOption .= '<option value="身份证" '. Is::Selected($UE_cardType,'身份证') .'>身份证</option>';
			}
			if ( strpos($userSysArr['US_shimingTypeStr'],'[qiye]') !== false ){
				$cardTypeNum ++;
				$cardTypeName = '营业执照';
				$cardTypeOption .= '<option value="营业执照" '. Is::Selected($UE_cardType,'营业执照') .'>营业执照</option>';
			}
			if ( strpos($userSysArr['US_shimingTypeStr'],'[qita]') !== false ){
				$cardTypeNum ++;
				$cardTypeName = '其他';
				$cardTypeOption .= '<option value="其他" '. Is::Selected($UE_cardType,'其他') .'>其他</option>';
			}
			if ($cardTypeNum == 1){
				$cardTypeOption = '<input type="hidden" id="cardType" name="cardType" value="'. $cardTypeName .'" />'. $cardTypeName .'';
			}else{
				$cardTypeOption = '
					<select id="cardType" name="cardType" onchange="CheckShiming()" class="form-control">
						<!-- <option value="" '. Is::Selected($UE_cardType,'') .'></option> -->
						'. $cardTypeOption .'
					</select>
					';
			}
			$retStr .= '
			<input type="hidden" id="isShiming" name="isShiming" value="0" />
			<div class="row">
				<div class="col-sm-12">
					<div class="form-group">
						<label class="col-sm-2 control-label">认证类型：</label>
						<div class="col-sm-10">
							'. $cardTypeOption .'
							'. ($UE_cardState == 3 ? '<span style="color:red;">&ensp;&ensp;（审核拒绝，请重新检查内容在提交，有问题请联系管理员）</span>' : '') .'
						</div>
					</div>
				</div>
			</div>
			<div class="row">
				<div class="col-sm-12">
					<div class="form-group">
						<label class="col-sm-2 control-label" id="shimingUser">姓名：</label>
						<div class="col-sm-10">
							<input id="cardUser" name="cardUser" class="form-control" type="text" value="'. $UE_cardUser .'">
							<span id="shimingUserNote" class="font2_2"></span>
						</div>
					</div>
				</div>
			</div>
			<div class="row">
				<div class="col-sm-12">
					<div class="form-group">
						<label class="col-sm-2 control-label" id="shimingID">身份证号：</label>
						<div class="col-sm-10">
							<input id="cardID" name="cardID" class="form-control" type="text" value="'. $UE_cardID .'">
							<span id="shimingIDNote" class="font2_2"></span>
						</div>
					</div>
				</div>
			</div>
			<div class="row">
				<div class="col-sm-12">
					<div class="form-group">
						<label class="col-sm-2 control-label">认证选择：</label>
						<div class="col-sm-10">
							'. $shimingTypeList .'
						</div>
					</div>
				</div>
			</div>
			<div class="row" id="shimingWeixin" style="display:none;">
				<div class="col-sm-12">
					<div class="form-group">
						<label class="col-sm-2 control-label">微信实名二维码：</label>
						<div class="col-sm-10">
							<input type="button" value="获取二维码" onclick="GetShimingWeixin()" />
							<div id="weixinQrBox" style="line-height:1.6;padding:6px 2px;"></div>
						</div>
					</div>
				</div>
			</div>
			<div class="row" id="shimingAlipay" style="display:none;">
				<div class="col-sm-12">
					<div class="form-group">
						<label class="col-sm-2 control-label">支付宝实名码：</label>
						<div class="col-sm-10">
							<input type="button" value="获取二维码" onclick="GetShimingAlipay()" />
							<div id="alipayQrBox" style="line-height:1.6;padding:6px 2px;"></div>
						</div>
					</div>
				</div>
			</div>
			<div class="row" id="shimingUpImg" style="display:none;">
				<div class="col-sm-12">
					<div class="form-group">
						<label class="col-sm-2 control-label" id="shimingImgFile">身份证电子版：</label>
						<div class="col-sm-10">
							<input type="text" id="cardImg" name="cardImg" class="text" style="width:350px;" value="'. $UE_cardImg .'" readonly="true" title="仅限通过上传图片来更改" />
							<input type="button" style="height:29px;" onclick=\'OT_OpenUpImg("input","cardImg","users","&proType=shiming")\' value="上传图片" />
							<span style="position:relative;"><span style="position:absolute; left:-160px; top:-20px;"><img id="shimingImg1View" src="" width="170" style="display:none;" onerror=\'this.src="inc_img/noPic.gif";\' /></span></span>&ensp;
							<!-- <span class="font2_2">（个人上传身份证电子版，企业上传营业执照电子版）</span> -->
						</div>
					</div>
				</div>
			</div>
			<script language="javascript" type="text/javascript">
			CheckShiming();
			CheckShimingDeal();
			</script>
			';
		}

		$appItemStr = '';
		if (AppDashang::Jud()){
			// 打赏插件 上传打赏收款码
			$qrImgNum = 0;
			$drow = $DB->GetRow('select DS_isArea1,DS_isUser1,DS_ico1,DS_isArea2,DS_isUser2,DS_ico2,DS_isArea3,DS_isUser3,DS_ico3 from '. OT_dbPref .'dashang');
			if ($drow['DS_isArea1'] == 1 && $drow['DS_isUser1'] == 1){
				$qrImgNum ++;
				$appItemStr .= '
				<div class="row">
				<div class="col-sm-12">
					<div class="form-group">
						<label class="col-sm-2 control-label">'. StrCN::DashangIcoCN($drow['DS_ico1']) .'收款码：</label>
						<div class="col-sm-10">
							<input type="hidden" id="dashangImg1Old" name="dashangImg1Old" value="'. $UE_dashangImg1 .'" />
							<input type="text" id="dashangImg1" name="dashangImg1" class="form-control" value="'. $UE_dashangImg1 .'" readonly="true" title="仅限通过上传图片来更改" />
							<input type="button" style="height:29px;" onclick=\'OT_OpenUpImg("input","dashangImg1","users","&proType=dashang")\' value="上传图片" />
							&ensp;<span style="color:red;">（宽170px，高170px）</span>
							<span style="position:relative;"><span style="position:absolute; left:-160px; top:-20px;"><img id="img1View" src="" width="170" style="display:none;" onerror=\'this.src="inc_img/noPic.gif";\' /></span></span>
						</div>
					</div>
				</div>
				</div>
				';
			}
			if ($drow['DS_isArea2'] == 1 && $drow['DS_isUser2'] == 1){
				$qrImgNum ++;
				$appItemStr .= '
				<div class="row">
				<div class="col-sm-12">
					<div class="form-group">
						<label class="col-sm-2 control-label">'. StrCN::DashangIcoCN($drow['DS_ico2']) .'收款码：</label>
						<div class="col-sm-10">
							<input type="hidden" id="dashangImg2Old" name="dashangImg2Old" value="'. $UE_dashangImg2 .'" />
							<input type="text" id="dashangImg2" name="dashangImg2" class="form-control" value="'. $UE_dashangImg2 .'" readonly="true" title="仅限通过上传图片来更改" />
							<input type="button" style="height:29px;" onclick=\'OT_OpenUpImg("input","dashangImg2","users","&proType=dashang")\' value="上传图片" />
							&ensp;<span style="color:red;">（宽170px，高170px）</span>
							<span style="position:relative;"><span style="position:absolute; left:-160px; top:-20px;"><img id="img2View" src="" width="170" style="display:none;" onerror=\'this.src="inc_img/noPic.gif";\' /></span></span>
						</div>
					</div>
				</div>
				</div>
				';
			}
			if ($drow['DS_isArea3'] == 1 && $drow['DS_isUser3'] == 1){
				$qrImgNum ++;
				$appItemStr .= '
				<div class="row">
				<div class="col-sm-12">
					<div class="form-group">
						<label class="col-sm-2 control-label">'. StrCN::DashangIcoCN($drow['DS_ico3']) .'收款码：</label>
						<div class="col-sm-10">
							<input type="hidden" id="dashangImg3Old" name="dashangImg3Old" value="'. $UE_dashangImg3 .'" />
							<input type="text" id="dashangImg3" name="dashangImg3" class="form-control" value="'. $UE_dashangImg3 .'" readonly="true" title="仅限通过上传图片来更改" />
							<input type="button" style="height:29px;" onclick=\'OT_OpenUpImg("input","dashangImg3","users","&proType=dashang")\' value="上传图片" />
							&ensp;<span style="color:red;">（宽170px，高170px）</span>
							<span style="position:relative;"><span style="position:absolute; left:-160px; top:-20px;"><img id="img3View" src="" width="170" style="display:none;" onerror=\'this.src="inc_img/noPic.gif";\' /></span></span>
						</div>
					</div>
				</div>
				</div>
				';
			}
			if ($qrImgNum > 0){
				$appItemStr .= '
				<div class="row">
				<div class="col-sm-12">
					<div class="form-group">
						<label class="col-sm-2 control-label"></label>
						<div class="col-sm-10" style="color:red;">
							（收款图不是正方形的，可以通QQ截图或手机修图功能截取收款码上的二维码部分）
						</div>
					</div>
				</div>
				</div>
				';
			}
		}
		if (AppBbs::Jud()){
			// 论坛插件
			$bbsSysArr = Cache::PhpFile('bbsSys');

			if (isset($bbsSysArr['BS_isBbs']) && $bbsSysArr['BS_isBbs'] == 1){
				$appItemStr .= '
				<!-- <div class="row">
				<div class="col-sm-12">
					<div class="form-group">
						<label class="col-sm-2 control-label">上传头像：</label>
						<div class="col-sm-10">
							<input type="file" id="userFace" name="userFace" class="text" />
							&ensp;&ensp;
							<span class="font2_2">(图片格式：jpg/jpeg/gif；大小≤30KB；尺寸建议宽≤150px,高≤150px)</span>
						</div>
					</div>
				</div>
				</div>
				<div class="row">
				<div class="col-sm-12">
					<div class="form-group">
						<label class="col-sm-2 control-label">原头像：</label>
						<div class="col-sm-10">
							<img src="'. UsersFileDir . $UE_face .'" onerror=\'CheckNoPicErr(this, "", "def");\' />
						</div>
					</div>
				</div>
				</div> -->
				<div class="row">
				<div class="col-sm-12">
					<div class="form-group">
						<label class="col-sm-2 control-label">当前论坛头像：</label>
						<div class="col-sm-10">
							<div class="fl">'. AppBbs::UserFaceImg($UE_face) .'</div>
							<div class="fl pointer" style="color:blue;padding-top:20px;cursor:pointer;" onclick=\'ClickShowHidden("userFaceBox")\'>【更换头像】</div>
						</div>
					</div>
				</div>
				</div>
				<div class="row" id="userFaceBox" style="display:none;">
				<div class="col-sm-12">
					<div class="form-group">
						<label class="col-sm-2 control-label">头像选择：</label>
						<div class="col-sm-10">
							<table cellpadding="0" cellspacing="0" align="center"><tr><td>
							<ul style="list-style-type:none; padding:5px;">
							';
							for ($i=1; $i<=$bbsSysArr['BS_faceNum']; $i++){
								$appItemStr .= '
								<li style="float:left;text-align:center;padding:3px;"><label><img src="inc_img/face/'. $i .'.'. $bbsSysArr['BS_faceExt'] .'" disabled="true" style="max-width:100px;max-height:150px;" /><br /><input type="radio" name="face" value="'. $i .'" '. Is::Checked($UE_face,$i) .'></label></li>
								';
							}
							$appItemStr .= '
							</ul>
							</td></tr></table>
						</div>
					</div>
				</div>
				</div>
				';
			}

		}

		$retStr .= '
		</div>

		<div id="appBox" style="display:none;">
		'. $appItemStr .'
		</div>

		<div class="row">
			<div class="col-sm-12">
				<div class="form-group">
					<label class="col-xs-2 control-label"></label>
					<div class="col-xs-10">
                       <input type="submit" value="提 交" class="btn btn-info m-r-5" id="subBtn" />
                       <input type="reset" value="重 置" class="btn btn-warning" style="display:none;" />
					</div>
				</div>
			</div>
		</div>
		</form>

		<script language="javascript" type="text/javascript">
		CheckRevInfoType();
		</script>
		';

		return $retStr;
	}


	// 会员和会员组
	public static function UserAndGroup($userID,$mode='pc'){
		global $DB,$userSysArr;

		$announ = '';
		if (strlen(trim(''. Str::RegExp($userSysArr['US_userAndGroupAnnoun'],'html'))) >= 3){
			$announ = '<div class="announ hui-alert hui-alert-danger">'. $userSysArr['US_userAndGroupAnnoun'] .'</div>';
		}

		$uRow = $DB->GetRow('select UE_username,UE_groupID,UE_isGroupTime,UE_groupTime,UE_money,UE_score1,UE_score2,UE_score3,UE_state,UE_workTime from '. OT_dbPref .'users where UE_ID='. $userID);

		if ($uRow['UE_state'] == 1){ $stateCN='<span>已审核</span>'; }else{ $stateCN='<span style="color:#ca001d;">未审核</span>'; }

		$groupTimeStr = '';
		if ($uRow['UE_isGroupTime']==1 && strtotime($uRow['UE_groupTime'])){
			$groupTimeStr = '&ensp;<span style="font-size:12px;color:#d41b35;" title="到期时间：'. $uRow['UE_groupTime'] .'">['. TimeDate::DiffDayCN($uRow['UE_groupTime'],'') .']</span>';
		}

		$userSysArr = Cache::PhpFile('userSys');
		$appSysArr = Cache::PhpFile('appSys');

		$scoreList = '';
		if (AppMoneyRecord::Jud()){
			$scoreList .= '金额：<span style="font-weight:bold;color:red;">'. floatval($uRow['UE_money']) .'</span> 元 ，';
		}
		// if ($userSysArr['US_isScore1'] == 1){
			$scoreList .= $userSysArr['US_score1Name'] .'：<span style="font-weight:bold;color:green;">'. $uRow['UE_score1'] .'</span> ，';
		// }
		if ($userSysArr['US_isScore2'] == 1){
			$scoreList .= $userSysArr['US_score2Name'] .'：<span style="font-weight:bold;color:green;">'. $uRow['UE_score2'] .'</span> ，';
		}
		if ($userSysArr['US_isScore3'] == 1){
			$scoreList .= $userSysArr['US_score3Name'] .'：<span style="font-weight:bold;color:green;">'. $uRow['UE_score3'] .'</span> ，';
		}

		$retStr = '
		<script language="javascript" type="text/javascript" src="js/userAndGroup.js?v='. OT_VERSION .'"></script>
		'. $announ .'
		<div style="padding:10px 5px 20px 5px;">
			用户名：<span style="font-weight:bold;">'. $uRow['UE_username'] .'</span> ，
			会员组：<span style="font-weight:bold;color:blue;">'. UserGroup::CurrName($uRow['UE_groupID']) . $groupTimeStr .'</span> ，
			'. $scoreList .'
			状态：<span style="font-weight:bold;color:red;">'. $stateCN .'</span>
		</div>
		';

		if ($uRow['UE_state'] == 0){
			$retStr .= AppUserState1::UcArea($userID,$appSysArr,$userSysArr);	// 会员转正
		}

		$retStr .= AppQiandao::UcArea($userID,$userSysArr);					// 签到
		$retStr .= AppUserGroupWork::UcArea($userID,$uRow,$userSysArr);		// 领工资
		$retStr .= AppUserGroup::UcArea($userID,$uRow,$userSysArr);			// 会员组开通/更换/升级
		$retStr .= AppMoneyPay::UcArea($userID,$userSysArr);				// 金额兑换积分
		$retStr .= AppScoreTo::UcArea($userID,$appSysArr,$userSysArr);		// 积分互换

		return $retStr;
	}


	// 会员日志
	public static function LogWeb($userID){
		global $DB,$userRow;

		$retStr = '
		<div class="table-responsive">
			<table class="table table-hover">
				<thead>
					<tr>
						<th>编号</th>
						<th>发生时间</th>
						<th>IP</th>
						<th>事件</th>
					</tr>
				</thead>
				';
		$pageSize	= $userRow['UE_pageNum'];	// 每页条数
		$page		= OT::GetInt('page');
		$showRow=$DB->GetLimit('select * from '. OT_dbPref .'userLog where UL_userID='. $userID .' order by UL_ID DESC',$pageSize,$page);
		if (! $showRow){
			$retStr .= '</table></div><center class="font1_1 padd8">暂无记录</center>';
			return $retStr;
		}else{
			$recordCount=$DB->GetRowCount();
			$pageCount=ceil($recordCount/$pageSize);
			if ($page < 1 || $page > $pageCount){$page=1;}

			$retStr .= '<tbody class="tabBody">';
			$number=1+($page-1)*$pageSize;
			$rowCount = count($showRow);
			for ($i=0; $i<$rowCount; $i++){
				if ($i % 2 == 1){ $bgcolor='class="tabColorTr"'; }else{ $bgcolor=''; }
				$retStr .= '
				<tr id="data'. $showRow[$i]['UL_ID'] .'" '. $bgcolor .'>
					<td>'. $number .'</td>
					<td>'. $showRow[$i]['UL_time'] .'</td>
					<td>'. $showRow[$i]['UL_ip'] .'<span style="color:#c9c9c9;"> '. $showRow[$i]['UL_ipCN'] .'</span></td>
					<td>'. $showRow[$i]['UL_note'] .'</td>
				</tr>
				';
				$number ++;
			}
			$retStr .= '
			</tbody>
			</table></div>

			'. UcBase::Nav($page, $pageCount, $pageSize, $recordCount) .'
			';
		}
		unset($showRow);

		return $retStr;
	}


	// 栏目文章
	public static function InfoTypeWeb($userID){
		global $DB,$userRow,$userSysArr;

		$id		= OT::GetInt('id');
		$id2	= OT::GetInt('id2');

		$dayNumJud = false;
		if (strpos($userSysArr['US_infoTypeEvent'],'|updateNum|') !== false){
			$dayNumJud = true;
		}
		$todayDate = TimeDate::Get('date');

		$whereStr = $menuStr = '';
		$itexe = $DB->query('select IT_ID,IT_level,IT_theme,IT_themeStyle,IT_mode,IT_webID,IT_URL,IT_openMode,IT_infoTypeMode from '. OT_dbPref .'infoType where IT_state=1 and IT_placeMode=1 order by IT_rank ASC');
		if ($row = $itexe->fetch()){
			do {
				if ($id == $row['IT_ID']){
					$whereStr = ' and IF_type'. $row['IT_level'] .'ID='. $row['IT_ID'] .'';
					$styleStr = 'background-color:#48b0f7;';
					if (in_array($row['IT_infoTypeMode'], array('title','imgTitle'))){
						$userSysArr['US_infoTypeMode'] = $row['IT_infoTypeMode'];
					}
				}else{
					$styleStr = '';
				}

				$newNumSign = '';
				if ($dayNumJud){
					// 今日更新
					$newNum = $DB->GetOne('select count(IF_ID) from '. OT_dbPref .'info where IF_time>='. $DB->ForTime($todayDate .' 00:00:00') .' and IF_time<='. $DB->ForTime($todayDate .' 23:59:59') .' and IF_type'. $row['IT_level'] .'ID='. $row['IT_ID'] .'');
					if ($newNum > 0){
						$newNumSign = '<i class="redBgSign">'. $newNum .'</i>';
					}
				}
				$hrefStr = UcBase::InfoTypeUrl(array(
					'IT_mode'		=> $row['IT_mode'],
					'IT_ID'			=> $row['IT_ID'],
					'IT_webID'		=> $row['IT_webID'],
					'IT_URL'		=> $row['IT_URL'],
					));
				$menuBtn = '<a href="'. $hrefStr .'" target="'. $row['IT_openMode'] .'">【'. $row['IT_theme'] . $newNumSign .'】</a><!-- &ensp;'. $row['IT_themeStyle'] .' -->';
				$menuStr .= '<div class="menu" style="'. $styleStr .'">'. $menuBtn .'</div>';
			}while ($row = $itexe->fetch());
		}
		$itexe = null;

		$wapMenuWidth = '50%';
		switch ($userSysArr['US_infoTypeMenuMode']){
			case 1:		$wapMenuWidth = '100%';		break;
			case 2:		$wapMenuWidth = '50%';		break;
			case 3:		$wapMenuWidth = '33%';		break;
			case 4:		$wapMenuWidth = '25%';		break;
		}

		$wapSubMenuWidth = '50%';
		switch ($userSysArr['US_infoTypeSubMenuMode']){
			case 1:		$wapSubMenuWidth = '100%';		break;
			case 2:		$wapSubMenuWidth = '50%';		break;
			case 3:		$wapSubMenuWidth = '33%';		break;
			case 4:		$wapSubMenuWidth = '25%';		break;
		}

		$menuStyle = $subMenuStyle = '';
		if ($userSysArr['US_infoTypeMenuW'] > 0){
			$menuStyle .= 'width:'. $userSysArr['US_infoTypeMenuW'] .'px;';
		}
		if ($userSysArr['US_infoTypeMenuH'] > 0){
			$menuStyle .= 'height:'. $userSysArr['US_infoTypeMenuH'] .'px;';
		}
		if ($userSysArr['US_infoTypeSubMenuW'] > 0){
			$subMenuStyle .= 'width:'. $userSysArr['US_infoTypeSubMenuW'] .'px;';
		}
		if ($userSysArr['US_infoTypeSubMenuH'] > 0){
			$subMenuStyle .= 'height:'. $userSysArr['US_infoTypeSubMenuH'] .'px;';
		}

		$retStr = '
		<style>
		.menu	{
			'. $menuStyle .'float:left;text-align:center;vertical-align: middle;border:1px solid #ddd;background:#014c8d;color:#fff;padding:8px 15px;
			display: flex;
			align-items: center; /* 垂直居中对齐 */
			justify-content: center; /* 水平居中对齐 */
		}
		.subMenu	{
			'. $subMenuStyle .'float:left;text-align:center;vertical-align: middle;border:1px solid #ddd;background:#014c8d;color:#fff;padding:8px 15px;
			display: flex;
			align-items: center; /* 垂直居中对齐 */
			justify-content: center; /* 水平居中对齐 */
		}
		.menu a, .subMenu a	{ color:#fff; }
		.redBgSign	{ font-style:normal; display:inline-block; height:15px; line-height:16px; margin:0 0 0 6px; padding:0 5px; text-align:center; color:#fff; font-size:12px; background:red; border-radius:6px; }
		.imgNewsList ul {
			overflow: hidden;
			padding: 10px 0 10px 0;
			position: relative;
		}
		.imgNewsList ul:before {
			content: "";
			position: absolute;
			background: #fff;
			width: 1px;
			height: 100%;
			left: 10px
		}
		.imgNewsList ul:after {
			content: "";
			position: absolute;
			background: #fff;
			width: 100%;
			height: 1px;
			bottom: 20px;
			left: 0;
		}
		.imgNewsList li {
			float: left;
			width: 245px;
			border: #eee 1px solid;
			overflow: hidden;
			padding: 20px;
			-moz-transition: all .5s ease;
			-webkit-transition: all .5s ease;
			transition: all .5s ease;
		}
		.imgNewsList li b {
			display: block;
			width: 100%;
			overflow: hidden;
			height: 30px;
			line-height: 30px;
			margin: 10px 0;
			text-overflow: ellipsis;
			white-space: nowrap;
			overflow: hidden;
		}
		.imgNewsList li span {
			color: #999;
			overflow: hidden;
			text-overflow: ellipsis;
			-webkit-box-orient: vertical;
			display: -webkit-box;
			-webkit-line-clamp: 3;
			font-size: 14px;
			display: block;
		}
		.imgNewsList li:hover {
			background: #fff;
			box-shadow: #ccc 1px 1px 8px;
		}
		.imgNewsList li:hover img {
			transform: scale(1.05)
		}
		.imgNewsImg {
			width: 100%;
			height: 250px;
			overflow: hidden;
			border-radius: 3px;
			background: #CCC;
			display: block
		}
		.imgNewsImg img {
			display: inline-block;
			width: 100%;
			min-height: 100%;
			height: auto;
			vertical-align: middle;
			transition: all .5s ease-out .1s;
		}

		@media only screen and (max-width: 650px) {
			.menu	{ width:'. $wapMenuWidth .'; }
			.subMenu	{ width:'. $wapSubMenuWidth .'; }
			.imgNewsList li { width: 50%; }
			.imgNewsImg { height: 173px; }
		}
		</style>
		<script language="javascript" type="text/javascript">
		function ShowMenu(){
			$id("showBtn").style.display="none";
			$id("hiddenBtn").style.display="";
			$id("hiddenBox").style.display="";
			if ($id("moreBox")){ $id("moreBox").style.display="none"; }
		}
		function HiddenMenu(){
			$id("showBtn").style.display="";
			$id("hiddenBtn").style.display="none";
			$id("hiddenBox").style.display="none";
			if ($id("moreBox")){ $id("moreBox").style.display=""; }
		}
		</script>
		';

		if (strlen(trim(''. Str::RegExp($userSysArr['US_infoTypeAnnoun'],'html'))) >= 3){
			$retStr .= '<div class="announ hui-alert hui-alert-danger">'. $userSysArr['US_infoTypeAnnoun'] .'</div>';
		}

		$retStr .= '
		<div style="padding:8px 0 8px 0;">
			<div style="padding:0 0 8px 0;"><b>【栏&ensp;&ensp;&ensp;&ensp;目】</b></div><div class="clr"></div>'. $menuStr .'
		</div>
		<div class="clr"></div>
		';

		if (strlen($whereStr) == 0){
			$retStr .= '<div style="padding:10px;">'. $userSysArr['US_infoTypeAnnoun0'] .'</div><!-- <center><h4>请先选择【栏目】</h4></center> -->';
		}else{
			$dataNum = $hiddenNum = 0;
			$menuNewStr = $menu2Str = $menuHiddenStr = $menuMoreStr = '';
			$menu2exe = $DB->query('select IT_ID,IT_level,IT_theme,IT_themeStyle,IT_mode,IT_webID,IT_URL,IT_openMode,IT_infoTypeMode from '. OT_dbPref .'infoType where IT_state=1 and IT_fatID='. $id .' and IT_placeMode=2 order by IT_rank '. ($userSysArr['US_infoTypeSort'] == 'rank1' ? 'DESC' : 'ASC'));
			if ($row2 = $menu2exe->fetch()){
				do {
					$dataNum ++;
					if ($id2 == $row2['IT_ID']){
						$whereStr = ' and IF_type'. $row2['IT_level'] .'ID='. $row2['IT_ID'] .'';
						$styleStr = 'background-color:#48b0f7;';
						if (in_array($row2['IT_infoTypeMode'], array('title','imgTitle'))){
							$userSysArr['US_infoTypeMode'] = $row2['IT_infoTypeMode'];
						}
					}else{
						$styleStr = '';
					}
					$hrefStr = UcBase::InfoTypeUrl(array(
						'IT_mode'		=> $row2['IT_mode'],
						'IT_ID'			=> $id,
						'id2'			=> $row2['IT_ID'],
						'IT_webID'		=> $row2['IT_webID'],
						'IT_URL'		=> $row2['IT_URL'],
						));
					$menuBtn = '<div class="subMenu" style="'. $styleStr .'"><a href="'. $hrefStr .'" target="'. $row2['IT_openMode'] .'">'. $row2['IT_theme'] .'</a></div>';	// <!-- &ensp;'. $row2['IT_themeStyle'] .' -->
					if ($userSysArr['US_infoTypeSubMenuDefNum'] > 0 && $dataNum > $userSysArr['US_infoTypeSubMenuDefNum']){
						$hiddenNum ++;
						$menuHiddenStr .= $menuBtn;
					}else{
						$menu2Str .= $menuBtn;
					}

					if ($dayNumJud){
						// 今日更新
						$newNum = $DB->GetOne('select count(IF_ID) from '. OT_dbPref .'info where IF_time>='. $DB->ForTime($todayDate .' 00:00:00') .' and IF_time<='. $DB->ForTime($todayDate .' 23:59:59') .' and IF_type'. $row2['IT_level'] .'ID='. $row2['IT_ID'] .'');
						if ($newNum > 0){
							$menuNewStr .= '<div class="subMenu" style="'. $styleStr .'"><a href="'. $hrefStr .'" target="'. $row2['IT_openMode'] .'">'. $row2['IT_theme'] .'<i class="redBgSign">'. $newNum .'</i></a></div>';
						}
					}
				}while ($row2 = $menu2exe->fetch());
			}
			$menu2exe = null;

			if (strlen($menu2Str) > 0){
				if (strlen($menuNewStr) > 0){
					$retStr .= '
					<div style="padding:15px 0 8px 0;">
						<div style="padding-bottom:5px;"><b>【今日更新】</b></div><div class="clr"></div>'. $menuNewStr .'
					</div>
					<div class="clr"></div>
					';
				}
				$clickBtn = '';
				if (strlen($menuHiddenStr) > 0){
					$clickBtn = '
						<span id="showBtn" style="cursor:pointer;color:red;font-weight:bold;" onclick="ShowMenu()">&gt;&gt;&gt;点击查看剩余'. $hiddenNum .'个子栏目</span>
						<span id="hiddenBtn" style="cursor:pointer;color:blue;font-weight:bold;display:none;" onclick="HiddenMenu()">&gt;&gt;&gt;点击收缩'. $hiddenNum .'个子栏目</span>
						';
					/* if ($userSysArr['US_infoTypeSubMenuDefNum'] > 0 && $dataNum > $userSysArr['US_infoTypeSubMenuDefNum']){
						$clickBtn = '<div style="float:left;width:220px;text-align:center;">'. $clickBtn .'</div>';
					} */
					$menuHiddenStr = '<span id="hiddenBox" style="display:none;">'. $menuHiddenStr .'</span>';
					if (strpos($userSysArr['US_infoTypeEvent'],'|moreAlertItem|') !== false){
						$menuHiddenStr .= '<div id="moreBox" class="subMenu"><a href="#" onclick="ShowMenu();return false;">……</a></div>';
					}
				}
				$retStr .= '
				<div style="padding:15px 0 8px 0;">
					<div style="padding-bottom:5px;"><b>【子&ensp;栏&ensp;目】</b>'. $clickBtn .'</div><div class="clr"></div>
					'. $menu2Str . $menuHiddenStr .'
				</div>
				<div class="clr"></div>
				';
			}

			$webPathPart = UcBase::PcWapParDir();
			$beforeURL = UcBase::BeforeURL();
			if ($userSysArr['US_infoTypeMode'] == 'imgTitle'){
				$pageSize	= $userRow['UE_pageNum'];	// 每页条数
				$page		= OT::GetInt('page');
				$showRow=$DB->GetLimit('select IF_ID,IF_time,IF_img,IF_theme,IF_themeStyle,IF_URL,IF_isEncUrl,IF_infoTypeDir,IF_datetimeDir from '. OT_dbPref .'info where IF_state=1 and IF_isAudit=1'. $whereStr .''. OT_TimeInfoWhereStr .' order by IF_time DESC',$pageSize,$page);
				if (! $showRow){
					$retStr .= '<center class="font1_1 padd8">暂无记录</center>';
					return $retStr;
				}else{
					$recordCount=$DB->GetRowCount();
					$pageCount=ceil($recordCount/$pageSize);
					if ($page < 1 || $page > $pageCount){$page=1;}

					$retStr .= '<div class="imgNewsList"><ul>';
					$number=1+($page-1)*$pageSize;
					$rowCount = count($showRow);
					for ($i=0; $i<$rowCount; $i++){
						if ($i % 2 == 1){ $bgcolor='class="tabColorTr"'; }else{ $bgcolor=''; }
						// $hrefStr = '?m=infoDet&id='. $showRow[$i]['IF_ID'];
						if (strlen(''. $showRow[$i]['IF_URL']) > 0){
							$hrefStr = Url::NewsUrl($showRow[$i]['IF_URL'],$showRow[$i]['IF_isEncUrl'],$showRow[$i]['IF_ID'],$webPathPart);
						}else{
							$hrefStr = Url::NewsID($showRow[$i]['IF_infoTypeDir'],$showRow[$i]['IF_datetimeDir'],$showRow[$i]['IF_ID'],0,$webPathPart);
						}
						$retStr .= '
						<li>
							<i class="imgNewsImg"><a href="'. $hrefStr .'" target="_blank"><img src="'. Info::AutoImgUrl($showRow[$i]['IF_img'],$beforeURL,$showRow[$i]['IF_ID'],$showRow[$i]['IF_theme']) .'" onerror=\'CheckNoPicErr(this, "", "");\' /></a></i>
							<b><a href="'. $hrefStr .'" target="_blank" style="color:#000;">'. $showRow[$i]['IF_theme'] .'</a></b>
							<span class="readMore">'. TimeDate::Get('date',$showRow[$i]['IF_time']) .'</span>
						</li>
						';
						$number ++;
					}
					$retStr .= '
					</ul></div>
					<div class="clr"></div>

					'. UcBase::Nav($page, $pageCount, $pageSize, $recordCount) .'
					';
				}
				unset($showRow);

			}else{
				$retStr .= '
				<div class="table-responsive" style="margin-top:15px;">
					<table class="table table-hover">
						<thead>
							<tr>
								<th>编号</th>
								<th>文章标题</th>
								<th>发布日期</th>
							</tr>
						</thead>
						';
				$pageSize	= $userRow['UE_pageNum'];	// 每页条数
				$page		= OT::GetInt('page');
				$showRow=$DB->GetLimit('select IF_ID,IF_time,IF_theme,IF_themeStyle,IF_URL,IF_isEncUrl,IF_infoTypeDir,IF_datetimeDir from '. OT_dbPref .'info where IF_state=1 and IF_isAudit=1'. $whereStr .''. OT_TimeInfoWhereStr .' order by IF_time DESC',$pageSize,$page);
				if (! $showRow){
					$retStr .= '</table></div><center class="font1_1 padd8">暂无记录</center>';
					return $retStr;
				}else{
					$recordCount=$DB->GetRowCount();
					$pageCount=ceil($recordCount/$pageSize);
					if ($page < 1 || $page > $pageCount){$page=1;}

					$retStr .= '<tbody class="tabBody">';
					$number=1+($page-1)*$pageSize;
					$rowCount = count($showRow);
					for ($i=0; $i<$rowCount; $i++){
						if ($i % 2 == 1){ $bgcolor='class="tabColorTr"'; }else{ $bgcolor=''; }
						// $hrefStr = '?m=infoDet&id='. $showRow[$i]['IF_ID'];
						if (strlen(''. $showRow[$i]['IF_URL']) > 0){
							$hrefStr = Url::NewsUrl($showRow[$i]['IF_URL'],$showRow[$i]['IF_isEncUrl'],$showRow[$i]['IF_ID'],$webPathPart);
						}else{
							$hrefStr = Url::NewsID($showRow[$i]['IF_infoTypeDir'],$showRow[$i]['IF_datetimeDir'],$showRow[$i]['IF_ID'],0,$webPathPart);
						}
						$retStr .= '
						<tr id="data'. $showRow[$i]['IF_ID'] .'" '. $bgcolor .'>
							<td>'. $number .'</td>
							<td><a href="'. $hrefStr .'" class="font1_1" target="_blank">'. $showRow[$i]['IF_theme'] .'</a></td>
							<td>'. TimeDate::Get('date',$showRow[$i]['IF_time']) .'</td>
						</tr>
						';
						$number ++;
					}
					$retStr .= '
					</tbody>
					</table></div>

					'. UcBase::Nav($page, $pageCount, $pageSize, $recordCount) .'
					';
				}
				unset($showRow);
			}
		}

		return $retStr;
	}


	// 文章详情
	public static function InfoDetWeb($userID){
		global $DB,$userRow;

		$id	= OT::GetInt('id');

		$infoRow = $DB->GetRow('select IF_type,IF_theme,IF_img,IF_URL,IF_time,IF_type1ID,IF_type2ID,IF_type3ID,IF_writer,IF_source,IF_themeKey,IF_contentKey,IF_tabID,IF_content,IF_pageNum,IF_fileName,IF_file,IF_fileStr,IF_isReply,IF_topAddiID,IF_addiID,IF_readNum,IF_replyNum,IF_isCheckUser,IF_userID,IF_isAudit,IF_state,IF_mediaFile,IF_mediaEvent,IF_addition,IF_isEnc from '. OT_dbPref .'info where IF_ID='. $id);
			if (! $infoRow){
				JS::AlertBackEnd('搜索不到相关文章');
			}
			if ($infoRow['IF_state'] == 0){
				JS::AlertBackEnd('该文章已关闭');
			}
			if ($infoRow['IF_isAudit'] == 0 || $infoRow['IF_isAudit'] == 2){
				JS::AlertBackEnd('该文章未审核，待审核通过后才能预览');
			}

			$placeMode = 0;
			if ($infoRow['IF_type2ID'] > 0){
				$type2Row = $DB->GetRow('select IT_ID,IT_placeMode from '. OT_dbPref .'infoType where IT_ID='. $infoRow['IF_type2ID']);
				if ($type2Row){
					if ($type2Row['IT_placeMode'] == 1 || $type2Row['IT_placeMode'] == 12){
						$placeMode = 1;
					}
				}
				unset($type2exe);
			}elseif ($infoRow['IF_type1ID'] > 0){
				$type1Row = $DB->GetRow('select IT_ID,IT_placeMode from '. OT_dbPref .'infoType where IT_ID='. $infoRow['IF_type1ID']);
				if ($type1Row){
					if ($type1Row['IT_placeMode'] == 1 || $type1Row['IT_placeMode'] == 12){
						$placeMode = 1;
					}
				}
				unset($type1exe);
			}
			if ($placeMode == 0){
				JS::AlertBackEnd('该文章所属栏目显示位置：不是会员中心，无权预览');
			}

			if ($infoRow['IF_tabID'] > 0){
				$IF_content		= Info::GetTabContent($infoRow['IF_tabID'], $id);
			}else{
				$IF_content		= $infoRow['IF_content'];
			}

			// 内容
			$content = '';
			if (strlen(''. $infoRow['IF_URL'])>5){
				$content = '<script language="javascript" type="text/javascript">document.location.href="'. $infoRow['IF_URL'] .'";</script>';
			}else{
				if ($infoRow['IF_isCheckUser'] == 0 || ($infoRow['IF_isCheckUser'] > 0 && $infoRow['IF_isEnc'] == 1)){
					$content = Content::CloseTags($IF_content);
					$content = str_replace(InfoImgAdminDir,UcBase::BeforeURL() . InfoImgDir,$content);

					if (! ($infoRow['IF_isCheckUser'] > 0 && $infoRow['IF_isEnc'] == 1 && strpos($infoRow['IF_addition'],'|encMediaFile|') !== false)){
						$mediaCode = AppVideo::GetMediaCode($infoRow['IF_mediaFile']);
						if (strpos($infoRow['IF_addition'],'|topMediaFile|') !== false){
							$content = $mediaCode . $content;
						}else{
							$content .= $mediaCode;
						}
					}

					$content .= '<div id="newsEncCont" class="clrFix"></div>';

					if (! ($infoRow['IF_isCheckUser'] > 0 && $infoRow['IF_isEnc'] == 1 && strpos($infoRow['IF_addition'],'|encFile|') !== false)){
						$infoSysArr = Cache::PhpFile('infoSys');
						$fileCode = Info::FileList($id, $infoRow['IF_file'], $infoRow['IF_fileName'], $infoRow['IF_fileStr'], $infoSysArr['IS_fileTitle'], $infoSysArr['IS_fileStyle'], UcBase::BeforeURL());
						$content .= $fileCode;
					}
				}
			}


		$retStr = '
			<center><h3>'. $infoRow['IF_theme'] .'</h3></center>
			<div style="padding:20px 10px;" id="newsContent">'. $content .'</div>

			<style>
			.hiddenContent	{ padding:15px;border:2px red dashed;border-radius: .5rem;background:#fbfbc5;margin:3px;color:red; }
			.hiddenContent .lockBox	{ background-color:#f9d4d4; border-radius:.5rem; padding:8px;font-weight:bold; }
			.hiddenContent .lockImg	{ display: inline-block;width:14px;height:15px;background:url(../inc_img/lock.gif); position:relative; top:2px; }
			.hiddenContent .subBtn2 { padding:3px 8px; }
			.hiddenContent .tabBox	{ margin:0 auto; min-width:60%; }
			.hiddenContent .tdBox	{ margin-top:8px;font-size:14px;color:red;line-height:1.6; }
			.hiddenContent .announ1	{ padding:15px 5px; }
			.hiddenContent .announ2	{ padding:15px 5px; }
			.hiddenContent .newsUserItem	{ padding:12px 20px;color:#000;text-align:center; }
			.hiddenContent .newsReplyItem	{ padding:12px 20px;color:#000;text-align:center; }
			.hiddenContent .newsQuickItem	{ padding:12px 20px;color:#000;text-align:center; }
			.hiddenContent .newsPwdItem	{ padding:12px 20px;color:#000;text-align:center; }
			.hiddenContent hr	{ background-color:red;border:none;height:1px; }
			.hiddenContent .hrFont	{  }
			</style>
			<script language="javascript" type="text/javascript">
			$(function (){
				// 文本复制功能开启
				var clipboard2 = new ClipboardJS(".copyTextBtn", {
					//动态设置复制内容
					text:function(trigger) {
						return trigger.getAttribute("data-copyText");
					}
				});

				clipboard2.on("success", function(e){
					if(e.trigger.disabled == false || e.trigger.disabled == undefined) {
						var ylText = e.trigger.value;
						var ylColor = e.trigger.style.color;
						var ylType = "btn";
						if (typeof(ylText) == "undefined"){
							ylType = "span";
							ylText = e.trigger.innerHTML;
							e.trigger.innerHTML = "已复制成功";
						}else{
							e.trigger.value = "已复制成功";
						}
						e.trigger.style.color = "blue";
						e.clearSelection();
						e.trigger.disabled = true;
						// 3秒后按钮恢复原状
						setTimeout(function() {
							if (ylType == "span"){
								e.trigger.innerHTML = ylText;
							}else{
								e.trigger.value = ylText;
							}
							e.trigger.style.color = ylColor;
							e.trigger.disabled = false;
						},3000);
					}
				});

				clipboard2.on("error", function(e) {
					var ylText = e.trigger.value;
					var ylColor = e.trigger.style.color;
					var ylType = "btn";
					if (typeof(ylText) == "undefined"){
						ylType = "span";
						ylText = e.trigger.innerHTML;
						e.trigger.innerHTML = "复制失败，请手动复制";
					}else{
						e.trigger.value = "复制失败，请手动复制";
					}
					e.trigger.style.color = "red";
					// 3秒后按钮恢复原状
					setTimeout(function() {
						if (ylType == "span"){
							e.trigger.innerHTML = ylText;
						}else{
							e.trigger.value = ylText;
						}
						e.trigger.style.color = ylColor;
						e.trigger.disabled = false;
					},3000);
				});

				try {
					// 评论加载
					if (IS_isNewsReply>0 && $id("isReply").value>0 && IS_newsReplyMode!=1){
						LoadReplyList($id("infoID").value);
						LoadReplyWrite($id("infoID").value);
					}
				}catch (e) {}

				var _isUserCheck = '. $infoRow['IF_isCheckUser'] .';
				var _isEnc = '. $infoRow['IF_isEnc'] .';
				var _id = '. $id .';
				var webPathPart = "'. UcBase::PcWapParDir() .'";
				// 检查是否发送文章内容
				if (ToInt(_isUserCheck) > 0){
					if (_isEnc == 1){ retId="newsEncCont"; }else{ retId="newsContent"; }
					$id(retId).innerHTML = "<div class=\'hiddenContent\' style=\'text-align:center;padding:18px;\'>数据加载中...<br /><img src=\'"+ jsPathPart +"inc_img/loading.gif\' alt=\'数据加载中...\' /></div>";
					AjaxGetDealToId(webPathPart +"news_deal.php?m=contentSend&type=user&dataID="+ _id +"&isEnc="+ _isEnc +"&page=&webPathPart="+ WppSign(webPathPart), retId, "|video|");
				}else{
					LoadVideoFile($id("newsContent").innerHTML);
				}
			});
			</script>
			';

		return $retStr;
	}

}
?>